Help Errors - 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: Help Errors (
/showthread.php?tid=439362)
Help Errors -
YoungLoko - 25.05.2013
\Test.pwn(267) : error 001: expected token: "-string end-", but found "-identifier-"
\Test.pwn(257) : warning 215: expression has no effect
\Test.pwn(257) : error 001: expected token: ";", but found "-string-"
\Test.pwn(257) : warning 215: expression has no effect
\Test.pwn(257) : error 001: expected token: "-string end-", but found "-identifier-"
\Test.pwn(257) : fatal error 107: too many error messages on one line
Code - Line 257 = Red
Quote:
"public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WH ITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""C OL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}"
|
Can Anyone help?
Re: Help Errors -
DobbysGamertag - 25.05.2013
Are the spaces supposed to be on COLOR_WH ITE or is that just me looking at it wrong?
tip: use [pawn] and /pawn] tags for scripts

also, to make it easier, why don't you use color codes for the dialogs? like {FFFFF} etc?
EDIT:
Try this:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COL_WHITE""Login","COLOR_WHITE""Type your password below to login.","Login","Quit");
I spotted extra " " tags on the colors. Like i said, i use {FFF} codes, so i could be wrong
Re: Help Errors -
YoungLoko - 25.05.2013
Same Problem
(257) : error 001: expected token: "-string end-", but found "-identifier-"
(257) : warning 215: expression has no effect
(257) : error 001: expected token: ";", but found "-string-"
(257) : warning 215: expression has no effect
(257) : error 001: expected token: "-string end-", but found "-identifier-"
(257) : fatal error 107: too many error messages on one line
Heres the code atm Starting from 261 and ending at 273
Quote:
"{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WH ITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering..."," "COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}"
|
Can you tell me what ive done wrong?
Re: Help Errors -
YoungLoko - 25.05.2013
AnyOne?
Re: Help Errors -
YoungLoko - 25.05.2013
Please Can Anyone Help?