31.08.2009, 14:25
Quote:
Originally Posted by Cake.
So i have a problem i dont know how to solve so i hope you may help me with this.
the thing i need help with is Speedo meter and fuel When i enter a vehicle the Speed pops up and after a while the fuel pops up and just dissipairs how to fix this so both is visible Here is the fuel code Код:
{ format(string, sizeof(string), "~b~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ N/A"); } else { format(string, sizeof(string), "~b~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ %d%",Gas[vehicle]); } GameTextForPlayer(i,string,20500,3); } Код:
{ if(distance <10) { format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~speed : ~w~%.0f",distance); } if(distance > 10 && distance < 100) { format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~speed : ~w~%.0f",distance); } if(distance > 100) { format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~speed : ~w~%.0f",distance); } GameTextForPlayer(i, string, 2000, 5); } |
Change:
pawn Код:
GameTextForPlayer(i,string,20500,3); }
pawn Код:
GameTextForPlayer(i, string, 2000, 5);
pawn Код:
GameTextForPlayer(i,string,99999999,3); }
pawn Код:
GameTextForPlayer(i, string, 99999999, 5);