Getting Player IP? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting Player IP? (
/showthread.php?tid=155348)
Getting Player IP? -
Antonio [G-RP] - 18.06.2010
Fixedddddd
Re: Getting Player IP? -
Backwardsman97 - 18.06.2010
It's because it returns ip as a string and you formatted it as an integer.
pawn Код:
format(string, 128, "[Info] %s is connected with IP address [%d]", name, ip);
Needs to be.
pawn Код:
format(string, 128, "[Info] %s is connected with IP address [%s]", name, ip);
Re: Getting Player IP? -
Antonio [G-RP] - 18.06.2010
Why is IP a string, rather than an interger?
Re: Getting Player IP? -
Backwardsman97 - 18.06.2010
I guess because of the periods in it.
Re: Getting Player IP? -
Antonio [G-RP] - 18.06.2010
Alright, thanks man.