public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : error 001: expected token: ";", but found "-string-" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\gamemodes\roleplay.pwn(91) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{FFFFFF}Login","{FFFFFF}Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit");
}
return 1;
}
#define COL_WHITE "poooooop"
what is COL_WHITE defined as? is it a color definition? only strings can be stuffed in like that like if
pawn Код:
|
SendClientMessage(playerid, COL_WHITE, "Welcome to my server!");
COL_WHITE can only be used in asigning a color to a thing like
pawn Код:
|