31.01.2013, 19:56
Hi,
I compiled my gamemode, I get this error:
Error list:
Thanks in advance.
I compiled my gamemode, I get this error:
Error list:
Code:
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : warning 215: expression has no effect C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: ";", but found ")" C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 029: invalid expression, assumed zero C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP Code:
public OnPlayerConnect(playerid)
{
new str[128], string[256];
if(fexist(Path(playerid)))//Line 55
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
format(string, sizeof(string), "Welcome back {1580EA}%s. {D4D4D4}This account is registered. \nInsert your password to login to your account", Name(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login",string,"Login","Quit");
}
else
{
format(string, sizeof(string), "Welcome! {1580EA}%s. {D4D4D4}This account is not registered.\nEnter your own password to create a new account.", Name(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register",string,"Register","Quit");
return 1;
}
format(str, sizeof(str), "{44BBBB}[Server]: {00FFFF}%s {FFFFFF}has joined in the server. Welcome him to {4DA8B3}FlyBy {1515EA}Cops {FFFFFF}and {FF0000}Robbers", Name(playerid));
SendClientMessageToAll(-1, str);
return 1;
}