Why doesnt command work?
#1

Код:
CMD:activatetrucker(playerid, params[])
{
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "INFO: You need to login first before using any command.");
	if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "INFO: You are not authorized to use this command.");
	new Float:X, Float:Y, Float:Z; //We use this to store player position
	GetPlayerPos(playerid, X, Y, Z); //Here we are storing the player position on the variables X, Y, and Z defined previously
	if (X >= -466 && X <= -505 && Y >= -468 && Y <= -507)
	{
		SendClientMessage(playerid, COLOR_YELLOW, "Success!");
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "Failed!");
	}
	return 1;
}
Its a test for me to get areas working, how the heck do I do it though? Its not working. This is supposed to be an area just north of the truck depot west of LS.
Also, How do I post my code in pawno here on the forum. Thanks heaps guys!
Reply


Messages In This Thread
Why doesnt command work? - by oblexive - 20.07.2012, 07:09
Re: Why doesnt command work? - by newbienoob - 20.07.2012, 07:19
Re: Why doesnt command work? - by oblexive - 20.07.2012, 07:23
Re: Why doesnt command work? - by oblexive - 20.07.2012, 07:50
Re: Why doesnt command work? - by newbienoob - 20.07.2012, 08:04
Re: Why doesnt command work? - by oblexive - 21.07.2012, 09:41
Re: Why doesnt command work? - by MadeMan - 21.07.2012, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)