06.06.2013, 17:58
Код:
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,COL_WHITE"Login",COL_WHITE"Please enter your password to login.","Login","Quit"); } else { ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,COL_WHITE"Register",COL_WHITE"Type a password to register your account","Register","Quit"); } return 1; }
Код:
stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; }
Код:
#define PATH "/Users/%s.ini"
Код:
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 035: argument type mismatch (argument 4) C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 001: expected token: ";", but found "-string-" C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : fatal error 107: too many error messages on one line