Auto login problem!
#1

I have this Auto login in the OnPlayerConnect callback.
But it seems to log everybody in, even though the ips doesn't match.

Can you spot the problem?
pawn Код:
GetPlayerName(playerid, playrname, sizeof(playrname));
    new file[48];
    format(file, sizeof(file), "\\V-Admin\\Users\\%s.ini", playrname);
    if(dini_Exists(file))
    {
        new IP1[16], IP2[256], string3[32];
        GetPlayerIp(playerid, IP1, sizeof(IP1));
        IP2 = dini_Get(string3, "LastIP");
        if(strcmp(IP1,IP2, true) == 0)
        {
The entire callback if needed.
Pastebin
Reply


Messages In This Thread
Auto login problem! - by Djiango - 29.05.2009, 09:57
Re: Auto login problem! - by Jefff - 29.05.2009, 11:59
Re: Auto login problem! - by Djiango - 29.05.2009, 12:09

Forum Jump:


Users browsing this thread: 3 Guest(s)