14.07.2009, 17:41
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
This is inside my user.ini file once registered.
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.
// INSIDE MY REGISTER COMMAND
Код:
new ip[15]; new PlayerIP = GetPlayerIp(playerid, ip, sizeof(ip)); dini_Create(GetPlayerPath(playerid)); dini_IntSet(GetPlayerPath(playerid), "ip", PlayerIP);
Код:
ip=13
Any help on getting this so its like 'ip=xx.xx.xxx.xxx' as it should be.