Help Errors
#1

\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?
Reply
#2

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
Reply
#3

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?
Reply
#4

AnyOne?
Reply
#5

Please Can Anyone Help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)