-string- and -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: -string- and -identifier- (
/showthread.php?tid=617506)
-string- and -identifier- -
Gotham - 22.09.2016
hi guys
I get an error compiling my script on line 100
Код:
error 001: expected token: "-string end-", but found "-identifier-"
PHP код:
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
What is wronggg?
Re: -string- and -identifier- -
Konstantinos - 22.09.2016
COL_WHITE is defined as an integer when it should be string.
pawn Код:
#define COL_WHITE "{FFFFFF}"
but you CANNOT use those as color (2nd parameter) in client messages etc.
Re: -string- and -identifier- -
Gotham - 22.09.2016
Quote:
Originally Posted by Konstantinos
COL_WHITE is defined as an integer when it should be string.
pawn Код:
#define COL_WHITE "{FFFFFF}"
but you CANNOT use those as color (2nd parameter) in client messages etc.
|
Omg ty xd
I didnt know