Quote:
Originally Posted by [FMJ]PowerSurge
pawn Код:
if(fexist(PlayerPath(playerid))) { INI_ParseFile(PlayerPath(playerid), "UserDataLoad_%s", .bExtra = true, .extra = playerid); //Calling loading callback #if defined AUTOLOGIN if(strcmp(tmpIP,pIP[playerid],true) == 0)//Checking if the IPs match { pLogged[playerid] = 1; SetPlayerScore(playerid,pInfo[playerid][Score]); GivePlayerMoney(playerid,pInfo[playerid][Cash]); SendClientMessage(playerid,lime,"You've been auto-logged in. [IP match]"); } #endif ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Please enter your password below.","Login","Leave"); }
You never check if they're logged in before showing the dialog. You log them in then show them the dialog.
Try changing the ShowPlayerDialog to this:
pawn Код:
if(pLogged[playerid] == 0) { ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Please enter your password below.","Login","Leave"); }
|
It's giving me 26 errors..