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
#2

You need GetVehicleModel
Reply
#3

LOL !!
I so dumb !!
i do this yesterdey :S
i try it wait
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)