SA-MP Forums Archive
My 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: My auto-login problem.. (/showthread.php?tid=87334)



My auto-login problem.. - SiJ - 19.07.2009

Hey,
I use dudb and save player IP on disconnect:
pawn Код:
new IP[MAX_STRING]; //Because dUser(.. returns string which size is MAX_STRING
GetPlayerIp(playerid,IP,sizeof(IP));
dUserSet(PlayerName(playerid)).("IP",IP);
But it saves this IP in file: IP=255.255.255.255
Why?


Re: My auto-login problem.. - James_Alex - 19.07.2009

yes cuz this is the dudb function
it saves as "IP=..."


Re: My auto-login problem.. - Correlli - 19.07.2009

No, there is a bug at OnPlayerDisconnect, it will always save ip as 255.255.255.255.
Save it when player logins or make it in a timer.