SA-MP Forums Archive
expected token: "-string end-", but found "-identifier-" Help me to fix it.. - 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: expected token: "-string end-", but found "-identifier-" Help me to fix it.. (/showthread.php?tid=423845)



expected token: "-string end-", but found "-identifier-" Help me to fix it.. - DetoNater - 19.03.2013

My Code:

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,""COLOR_WHITE"Register",""COLOR _WHITE"Type your password below to register a new account.","Register","Quit");
}


When I complie I get.

error 001: expected token: "-string end-", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "-string-"
warning 215: expression has no effect
error 001: expected token: "-string end-", but found "-identifier-"
fatal error 107: too many error messages on one line


Re: expected token: "-string end-", but found "-identifier-" Help me to fix it.. - David (Sabljak) - 19.03.2013

Код:
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_WHITE"Type your password below to login.,"Login","Quit" );
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Register",""COLOR _WHITE"Type your password below to register a new account.","Register","Quit");
}



Re: expected token: "-string end-", but found "-identifier-" Help me to fix it.. - DetoNater - 20.03.2013

sorry brother its not working.......

here is my script can you fix it and give?
http://pastebin.com/EBNHGqnm


Respuesta: expected token: "-string end-", but found "-identifier-" Help me to fix it.. - Parka - 20.03.2013

pawn Код:
#define COLOR_WHITE "{FFFFFF}"



Re: expected token: "-string end-", but found "-identifier-" Help me to fix it.. - DetoNater - 20.03.2013

I defined the color white, but when I compiled it.. it says "Pawno Compiler Library has stopped Working".. a request @ cesar can you fix the whole script?


Respuesta: expected token: "-string end-", but found "-identifier-" Help me to fix it.. - Parka - 20.03.2013

pawn Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit" );
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register","Type your password below to register a new account.","Register","Quit");
}