[SOLVED] /aunban ? How?
#1

Код:
	if(strcmp(cmd, "/aunban", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 5)
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "KASUTAMINE: /aunban [IP]");
				return 1;
			}
			IP = ReturnUser(tmp);
			SendRconCommand("unban %d",IP);
			SendRconCommand("unbanip %d",IP);
			SendClientMessage(playerid, COLOR_YELLOW, "IP have been unbanned!");
		}
		else
		{
			SendClientMessage(playerid, COLOR_GRAD1, "You must be a level 5 admin to do this command.");
		}
		return 1;
	}
Says me 3x "undefined bla bla "IP"" in Pawno Compiler.
Reply


Messages In This Thread
[SOLVED] /aunban ? How? - by Mechscape - 29.12.2009, 02:06
Re: [UNSOLVED] /aunban ? How? - by CuervO - 29.12.2009, 03:35
Re: [UNSOLVED] /aunban ? How? - by Mechscape - 29.12.2009, 13:50

Forum Jump:


Users browsing this thread: 4 Guest(s)