• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] how to get the last digit of a player's IP
#5
(2021-07-15, 11:37 PM)Kwarde Wrote: I editted my post while you were replying. Check out the last code, that does what you want ;-)
And indeed. The strfind() thing I posted would accept all IPs starting with "192.168.1" (I don't see how that could become an issue tho)

how did this work? i'm kinda confused from that sscanf thing, like what's that
Code:
p<.>dddd
? to be honest, the whole line itself:
Code:
sscanf(ip, "p<.>dddd", ip_part1, ip_part2, ip_part3, ip_part4);
  Reply


Messages In This Thread
RE: how to get the last digit of a player's IP. - by mems - 2021-07-15, 11:49 PM

Forum Jump: