GetPlayerIp - Getting it with strcmp?
#4

pawn Код:
new ip[16];
  GetPlayerIp(playerid, ip, sizeof(ip));
  if(!strcmp(ip, "85.76.*.*")) {
  Kick(playerid);
  }
You cannot use '*' with GetPlayerIp, try this:

pawn Код:
new ip[16];
  GetPlayerIp(playerid, ip, sizeof(ip));
  if(!strcmp(ip, "85.76.", true, strlen(ip))) {
  Kick(playerid);
  }
Reply


Messages In This Thread
GetPlayerIp - Getting it with strcmp? - by Jakku - 21.05.2010, 14:42
Re: GetPlayerIp - Getting it with strcmp? - by DJDhan - 21.05.2010, 14:45
Re: GetPlayerIp - Getting it with strcmp? - by Jakku - 21.05.2010, 14:47
Re: GetPlayerIp - Getting it with strcmp? - by WackoX - 21.05.2010, 14:48
Re: GetPlayerIp - Getting it with strcmp? - by Calgon - 21.05.2010, 14:49
Re: GetPlayerIp - Getting it with strcmp? - by Zeex - 21.05.2010, 15:05
Re: GetPlayerIp - Getting it with strcmp? - by Calgon - 21.05.2010, 15:32
Re: GetPlayerIp - Getting it with strcmp? - by ¤Adas¤ - 21.05.2010, 15:39
Re: GetPlayerIp - Getting it with strcmp? - by Zeex - 21.05.2010, 16:24
Re: GetPlayerIp - Getting it with strcmp? - by ¤Adas¤ - 21.05.2010, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)