my condition does not working
#1

Код:
	if (strcmp("/MTaxi", cmdtext, true, 10) == 0)
	{
	if(GetPlayerVehicleID(playerid) != 420)
	{
		SendClientMessage(playerid, COLOR_RED , "TEXT #1");
		return 1;
	}
	else if(GetPlayerVehicleID(playerid) == 420)
 	{
	    if(GetPlayerState(playerid) != 2)
		{
			SendClientMessage(playerid, COLOR_RED , "TEXT #2");
			return 1;
		}
	    SendClientMessage(playerid, COLOR_RED , "TEXT #3");
	    format(string, sizeof(string), "%d SOMETEXT", TaxiMoney);
	    SendClientMessage(playerid, COLOR_RED , string);
	    SetTimer("Taxi", 600000, 1);
	    inTaxi[playerid] = 1;
	    return 1;
	}
	}
Does anyone know why ALWAYS the server sent for me the TEXT #1(like i'm not in a taxi(ID 420)).
the condition does not well ??

Thanks for helpers !!
Reply


Messages In This Thread
my condition does not working - by lidor5353 - 25.04.2010, 09:41
Re: my condition does not working - by FUNExtreme - 25.04.2010, 09:44
Re: my condition does not working - by lidor5353 - 25.04.2010, 09:49

Forum Jump:


Users browsing this thread: 2 Guest(s)