Unknown Command
#1

When I type the command which is under here, it says: "Use /setplayertg [playerid/name]" , which it should say. So when I try to add an ID to that, for example my own, like /setplayertg 0 , it says unknown command.. How can I fix this?

Код:
if (strcmp(cmdtext, "/setplayertg", true ) == 0)
	{
 		new tmp[256];
		tmp = strtok(cmdtext, idx);
	    new otherplayerid;
	    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Use /setplayertg [playerid/name]");
	    else if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "This player is not connected");
	    else
	    {
	        SendClientMessage(otherplayerid,COLOR_LIGHTRED,"You've been set to [Team 2] by an [Admin].");
			setTG[otherplayerid] = 1;
	    }
	    return 1;
	}
Reply


Messages In This Thread
Unknown Command - by Kudoz - 10.06.2013, 14:10
AW: Unknown Command - by Blackazur - 10.06.2013, 14:12
Re: Unknown Command - by Kudoz - 10.06.2013, 14:16
Re: Unknown Command - by IceBilizard - 10.06.2013, 14:18
Re: Unknown Command - by Kudoz - 10.06.2013, 14:24
Re: Unknown Command - by IceBilizard - 10.06.2013, 14:25
Re: Unknown Command - by Kudoz - 10.06.2013, 14:32
Re: Unknown Command - by IceBilizard - 10.06.2013, 14:40
Re: Unknown Command - by Kudoz - 10.06.2013, 14:47
Re: Unknown Command - by IceBilizard - 10.06.2013, 15:08

Forum Jump:


Users browsing this thread: 3 Guest(s)