02.01.2011, 14:09
Just compare it directly.
Also in your OnPlayerConnect function, what's the point in doing that? Why not just save it directly to the variable in the first place? Like so:
Lastly, moved to the right section.
pawn Код:
stock OnPlayerAutoLogin(playerid)
{
format(File, sizeof(File), "/accountfiles/%s.sav", PlayerName[playerid]);
AutoLogin = dini_Int(File, "AutoLogin");
if(AutoLogin)
{
if(!strcmp(AccountInfo[playerid][aIP], dini_Get(File, "IP"))) return 1;
}
return 0;
}
pawn Код:
public OnPlayerConnect(playerid)
{
GetPlayerIp(playerid, AccountInfo[playerid][aIP], sizeof(AccountInfo[playerid][aIP]));
return 1;
}

