Auto login problem! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto login problem! (
/showthread.php?tid=79568)
Auto login problem! -
Djiango - 29.05.2009
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
Re: Auto login problem! -
Jefff - 29.05.2009
Код:
IP2 = dini_Get(file, "LastIP");
Re: Auto login problem! -
Djiango - 29.05.2009
Thank you very much, it works now. :P