Jump to content
  • 0

Eroare script line (fuel & speed)


Joel

Question

*Deci se intampla ca "Fuel" sa se vada in felul asta:

fuel_problem.png

Codul este:

public Checkvehinfo()
{
	foreach(Player,i)
	{
    	if(IsPlayerConnected(i))
       	{
       	    if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
       	    {
	       		new vehicle = GetPlayerVehicleID(i);
                new spe = Carspeed(i);
                new str1[128],str2[128],str3[128];
				TextDrawShowForPlayer(i, Speedd[i]);
				format(str1,sizeof(str1)," Speed: %d Km/h",spe);
				TextDrawSetString(Speedd[i], str1);
				if(!IsABike(vehicle))
				{
					TextDrawShowForPlayer(i, Fuell[i]);
					format(str2,sizeof(str2)," Fuel: %d%", Gas);
					TextDrawSetString(Fuell[i], str2);
				}
				if(OwnedVeh(vehicle) != 0 && !IsAPlane(vehicle))
				{
				    TextDrawShowForPlayer(i, Odom[i]);
					format(str3,sizeof(str3),"Odometers: %.2f Km",CarInfo[OwnedVeh(vehicle)][cKM]);
					TextDrawSetString(Odom[i], str3);
				}
			}
    	}
	}
	return 1;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.