Help with GetPlayerIp.
#1

Im looking to create an auto login, and when the user register's it will save there IP address to there file and this is what i get.

// INSIDE MY REGISTER COMMAND
Код:
new ip[15];
new PlayerIP = GetPlayerIp(playerid, ip, sizeof(ip));
dini_Create(GetPlayerPath(playerid));
dini_IntSet(GetPlayerPath(playerid), "ip", PlayerIP);
This is inside my user.ini file once registered.
Код:
ip=13
every user that creates an account has the same 'ip=13' yet, if i used a string to print the IP it would come out as the proper IP address.
Any help on getting this so its like 'ip=xx.xx.xxx.xxx' as it should be.
Reply


Messages In This Thread
Help with GetPlayerIp. - by Anwix - 14.07.2009, 17:41
Re: Help with GetPlayerIp. - by Correlli - 14.07.2009, 18:04
Re: Help with GetPlayerIp. - by Anwix - 14.07.2009, 18:07
Re: Help with GetPlayerIp. - by Jefff - 14.07.2009, 18:09
Re: Help with GetPlayerIp. - by Anwix - 14.07.2009, 18:15

Forum Jump:


Users browsing this thread: 3 Guest(s)