Scripting Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting Problem (
/showthread.php?tid=402465)
Scripting Problem -
DJTunes - 26.12.2012
Okay, so I have an error saying:
Код:
"invalid expression, assumed zero"
Here's what's on that line:
Код:
ShowPlayerDialog(playerid, DIALOG_SVRRULES, DIALOG_STYLE_MSGBOX, "Server Rules", "You must agree with these rules.\n1. Do not team kill\n2. Do not base rape\n3. Do not spawn kill\n4. You will respect all users\n5. You will not use any kind of hack\n6. You will not advertise anything on our server\n7. You will follow these rules, and if not get banned.", "Close", "");
Re : Scripting Problem -
[HRD]Mar1 - 26.12.2012
The problem not on that line,
Show the line before that line
Re: Scripting Problem -
DJTunes - 26.12.2012
Код:
TextDrawShowForPlayer(playerid, gMyText);
Re : Scripting Problem -
[HRD]Mar1 - 26.12.2012
pawn Код:
ShowPlayerDialog(playerid, DIALOG_SVRRULES, DIALOG_STYLE_MSGBOX, "Server Rules", "You must agree with these rules.\n1. Do not team kill\n2. Do not base rape\n3. Do not spawn kill\n4. You will respect all users\n5. You will not use any kind of hack\n6. You will not advertise anything on our server\n7. You will follow these rules, and if not get banned.", "Close", "");
There is no problem on that line
Re: Scripting Problem -
DJTunes - 26.12.2012
Actually I have multiple errors, and warnings:
Код:
235 MW 73 "public function lacks forward declaration (symbol "SendMSG")"
217 MW 100 "loose indentation"
217 MW 113 "loose indentation"
029 MW 154 "invalid expression, assumed zero"
215 MW 154 "expression has no effect"
215 MW 154 "expression has no effect"
215 MW 154 "expression has no effect"
215 MW 154 "expression has no effect"
215 MW 154 "expression has no effect"
001 MW 154 "expected token: ";", but found ")""
029 MW 154 "invalid expression, assumed zero"
107 MW 154 "too many error messages on one line"
Though I defined it as:
#define DIALOG_SVRRULES
When I don't define it it says:
DIALOG_SVRRULES not defined
When I do I get those 4 errors...