Saving IP with Dini.
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
The issue is that you're not using the function GetPlayerIp correctly, it doesn't return the IP address as a string. It stores it in the second parameter, for example:

pawn Код:
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
dini_Set(playernamefile(playerid),"IP", ip);
Does that make sense?

In future, check out the documentation for the functions you are using!
You sir, are a life saver. I completely didn't realize it until you pointed it out to me. Again, thanks. Any whereabouts on why it sets my ip to 255.255.255.255? I wasn't LAN testing either, uploaded straight to my server.
Reply


Messages In This Thread
Saving IP with Dini. - by TyThaBomb - 28.06.2012, 07:55
Re: Saving IP with Dini. - by JaTochNietDan - 28.06.2012, 08:14
Re: Saving IP with Dini. - by TyThaBomb - 28.06.2012, 08:19
TyThaBomb - by [MM]RoXoR[FS] - 28.06.2012, 08:19
Re: Saving IP with Dini. - by JaTochNietDan - 28.06.2012, 08:22
Re: Saving IP with Dini. - by TyThaBomb - 28.06.2012, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)