Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] I cannot find the erorr here!

 
  • 0 Vote(s) - 0 Average
Pawn I cannot find the erorr here!
Scylla
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jul 2021
Reputation: 0
#1
2021-07-30, 09:13 AM (This post was last modified: 2021-07-30, 09:17 AM by Scylla.)
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!
Banditul Away

Burgershot Member
Posts: 38
Threads: 0
Joined: Apr 2019
Reputation: 2
#2
2021-07-30, 09:23 AM (This post was last modified: 2021-07-30, 09:24 AM by Banditul.)
Delete the comma , after DIALOG_LOGIN in enum

Edit: Last value in enum doesn't need a comma
Scylla
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jul 2021
Reputation: 0
#3
2021-07-30, 09:28 AM
(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
Scylla
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jul 2021
Reputation: 0
#4
2021-07-30, 09:30 AM
I fixed it guys turns out there was some invalid words on line 12. Thanks. Im stupid.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode