pls help ; expected token string end found identifier
#1

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

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}"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)