• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] I cannot find the erorr here!
#1
I have been getting this error and I don't know where this is happening. This error was really long time ago so I stopped coding. Now I want to continue it, and still I'm getting this error and it sucks.
Error:
Code:
\CF.pwn(125) : error 010: invalid function or declaration
\CF.pwn(483) : error 017: undefined symbol "DIALOG_LOGIN"
\CF.pwn(487) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1105) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1110) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1126) : error 017: undefined symbol "DIALOG_LOGIN"
\CF.pwn(1138) : error 017: undefined symbol "DIALOG_LOGIN"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.

Line 125 - 129:
Code:
enum
{
? ? ? ?DIALOG_REGISTER = 0,
? ? ? ?DIALOG_LOGIN,
};

Line 483:
Code:
ShowPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFF00}Login to proceed", "{FFFFFF}This account is registered... Please login to continue with your account.", "Enter", "Close");

My includes:
Code:
#include     "a_samp"
#include     "YSI\y_ini"
#include     "YSI\y_timers"
#include    "sscanf2"
#include   "progress"
#include   "zcmd"
#include  "mSelection"
#include  "weapon-config"
#include  "streamer"
#include  "foreach"

Please help!
  Reply
#2
Delete the comma , after DIALOG_LOGIN in enum

Edit: Last value in enum doesn't need a comma
Away
  Reply
#3
(2021-07-30, 09:23 AM)Banditul Wrote: Delete the comma , after DIALOG_LOGIN in enum



I tried, still give the same error. Y_Less said it has to do something before the line. And I cant really find it. Here is my code before line 125 - 129.

https://pastebin.com/G7p3ZTfM
  Reply
#4
I fixed it guys turns out there was some invalid words on line 12. Thanks. Im stupid.
  Reply


Forum Jump: