My auto-login problem..
#1

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)