need a bit help with GameTextForPlayer
#8

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); }
and here is the speedo code
Код:
					{
							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);
						}
Okay, I know whats wrong.
Change:
pawn Код:
GameTextForPlayer(i,string,20500,3); }
And:
pawn Код:
GameTextForPlayer(i, string, 2000, 5);
To:
pawn Код:
GameTextForPlayer(i,string,99999999,3); }
And:
pawn Код:
GameTextForPlayer(i, string, 99999999, 5);
But after a long while, it will disapear again. Then just change the numbers I changed and make them higher. Hope this will help you
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)