my condition does not working - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: my condition does not working (
/showthread.php?tid=143993)
my condition does not working -
lidor5353 - 25.04.2010
Код:
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 !!
Re: my condition does not working -
FUNExtreme - 25.04.2010
You need
GetVehicleModel
Re: my condition does not working -
lidor5353 - 25.04.2010
LOL !!
I so dumb !!
i do this yesterdey :S
i try it wait