29.05.2009, 09:57
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?
The entire callback if needed.
Pastebin
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)
{
Pastebin