12.11.2013, 17:15
Код:
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); if(fexist(Path(playerid))) { INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); INI_Parsefile. new INI:File = INI_Open(UserPath(playerid)); new INI:File = INI_Open(UserPath(playerid)); if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid); else { ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit"); } return 1; } else { ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit"); return 1; } return 1; }
Код:
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : warning 215: expression has no effect C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 001: expected token: ";", but found ")" C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 029: invalid expression, assumed zero C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.