Not working
#1

Hey guys. I made /challange in a dialog now.
Well. IT has to be like if you aren't inn that zone you it says: YOu are not in grove street.
Well for case 0 it works fine.
If you are not in it. It tells you the message. Else the gang zone will flash.

But with case 1 it just flashes and I don't have a message when I do it out of the zone. Why?

Код:
if(dialogid == 29430)
switch(listitem)
{
    case 0:
    {
    //GROVEZONE
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid, X,Y,Z);

	if (X <= 2235.0000 && X >= -1729.0000 && Y <= 2501.0000 && Z >= -1642.0000)
	{
		SendClientMessage(playerid, red, "You must be at grove street");
	}
	else
	{
		GangZoneFlashForAll(GroveZone,0xFF0000FF);
 }
    }

case 1:
    {
    //lspZONE
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid, X,Y,Z);

	if (X <= 1326.343 && X >= -1887.144 && Y <= 1702.824 && Z >= -1575.273)
	{
		SendClientMessage(playerid, red, "You must be at Pershing Sqaure");
	}
	else
	{
		GangZoneFlashForAll(LspZone,0xFF0000FF);
 }
    }
    }
Reply


Messages In This Thread
Not working - by bartje01 - 22.03.2010, 23:17
Re: Not working - by XGh0stz - 23.03.2010, 04:26
Re: Not working - by bartje01 - 23.03.2010, 06:08
Re: Not working - by XGh0stz - 23.03.2010, 07:01
Re: Not working - by MadeMan - 23.03.2010, 09:50

Forum Jump:


Users browsing this thread: 3 Guest(s)