Getting Player IP?
#1

Fixedddddd
Reply
#2

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);
Reply
#3

Why is IP a string, rather than an interger?
Reply
#4

I guess because of the periods in it.
Reply
#5

Alright, thanks man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)