Bug with GetPlayerIp
#1

Hello
I have some problem. My code:
Код:
new pIp[20];
GetPlayerIp(playerid, pIp, 20);
print(pIp);
On localhost(don't know on hosting) in console always is printed: 255.255.255.255, no 127.0.0.1
What i do bad?
Reply
#2

You use GetPlayerIp under OnPlayerdisconnect where it returns 255.255.255.255.

Btw, max IP length can be 16 not 20.
Reply
#3

I know 16, no 20, but this is safetly (my sugestion) xD

@TOPIC
I forget that, i have SavePlayerData in OnPlayerDisconnect xD
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)