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
#2

Код:
IP2 = dini_Get(file, "LastIP");
Reply
#3

Thank you very much, it works now. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)