05.01.2010, 14:41
i tried to make a gametext that will show money deacreasing while sitting in a taxi.
i made this but it fails and i added a timer
timer is under "onplayerstatechange"
i made this but it fails and i added a timer
Код:
public FareAmmount(playerid) { if(AccountInfo[playerid][Job] != 1) { new fare = TaxiFare[playerid]; new ammount = fare*2; new string[64]; GivePlayerMoney(playerid,-fare); format(string,64,"%d/sec~n~%d",fare,ammount); GameTextForPlayer(playerid,string,999,4); } else return 1; return 1; }
Код:
if(IsATaxi(vehicleid) && PLAYER_STATE_PASSENGER) { SetTimer("FareAmmount",1000,1); }