error 001: expected token: "-string end-", but found "-identifier-" - 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: error 001: expected token: "-string end-", but found "-identifier-" (
/showthread.php?tid=473084)
error 001: expected token: "-string end-", but found "-identifier-" -
ghost556 - 01.11.2013
So anyone know how to fix these errors?
Код:
Errors:
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : warning 215: expression has no effect
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : error 001: expected token: ";", but found "-string-"
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : warning 215: expression has no effect
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Corey\Desktop\SAMP\Gamemodes\Welcome to Las Venturas Pennitanry - NEW\gamemodes\test.pwn(404) : fatal error 107: too many error messages on one line
Код:
Code
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
// Line 404 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"You are already registered, write your chosen password to log in! ","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COLOR_WHITE"Welcome to CHANGEME, Our database tell us your new here, chose your password to register!","Register","Quit");
} // Mapping Below
Re: error 001: expected token: "-string end-", but found "-identifier-" -
Konstantinos - 01.11.2013
It should be defined as:
pawn Код:
#define COLOR_WHITE "{FFFFFF}"
But if you use COLOR_WHITE for colors (as parameter, then it's better to change the name).
pawn Код:
#define COL_WHITE "{FFFFFF}"
And replace them with "COL_WHITE"
Respuesta: error 001: expected token: "-string end-", but found "-identifier-" -
ghost556 - 01.11.2013
Thanks mate, you just saved me hours of screaming. Mods can lock this topic.