SA-MP Forums Archive
pls help ; expected token string end 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: pls help ; expected token string end found identifier (/showthread.php?tid=662347)



pls help ; expected token string end found identifier - ImTouchk - 29.12.2018

hi
so i am getting these errors
Code:
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : warning 215: expression has no effect
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : error 001: expected token: ";", but found "-string-"
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : warning 215: expression has no effect
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\McVid\Desktop\gta\gamemodes\testgm.pwn(83) : fatal error 107: too many error messages on one line
and line 83 is
Code:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Please type your password below to login.","Login","Quit");
and this is the part the line is in:
Code:
public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}T{FFFFFF}est {88AA88}S{FFFFFF}erver");
    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"Please type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Welcome!",""COLOR_WHITE"Please type your password below to register a new account.","Register","Quit");
    }
    
  	gPlayerCitySelection[playerid] = -1;
	gPlayerHasCitySelected[playerid] = 0;
	gPlayerLastCitySelectionTick[playerid] = GetTickCount();
 	return 1;
}
I can't see anything wrong with it. pls help thanks


Re: pls help ; expected token string end found identifier - ImTouchk - 29.12.2018

Quote:
Originally Posted by Y_Less
View Post
How are your colours defined?
haha thanks a lot I forgot I have to define them like #define WHITE "{FFFFFF}"