hallo, ich hab ein problem mit der tank anzeige ich will das jede 2 min 1 balken weg geht aber das dauert jetzt 15min bis ein balken weg geht^^ wie kann ich das verringern
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 1)
{
if(PlayerData[playerid][ShowCarInfoT])
{
KillTimer(PlayerData[playerid][ShowCarInfoT]);
}
if(PlayerData[playerid][UpFuelT])
{
KillTimer(PlayerData[playerid][UpFuelT]);
}
if(PlayerData[playerid][SpeedTimer])
{
KillTimer(PlayerData[playerid][SpeedTimer]);
}
if(PlayerData[playerid][UpLessFuelT])
{
KillTimer(PlayerData[playerid][UpLessFuelT]);
}
}
if(newstate == 2)
{
PlayerData[playerid][ShowCarInfoT] = SetTimerEx("ShowCInfo",1000,1,"i",playerid);
PlayerData[playerid][UpFuelT] = SetTimerEx("UpFuel",120000,1,"i",playerid);
PlayerData[playerid][UpLessFuelT] = SetTimerEx("UpLessFuel",1000,1,"i",playerid);
PlayerData[playerid][SpeedTimer] = SetTimerEx("UpSpeed",1000,1,"i",playerid);
VehicleSpeed[GetPlayerVehicleID(playerid)]=0;
VehicleLostFuel[GetPlayerVehicleID(playerid)]=0;
}
return 1;
}
was muss ich ändern?
aso wenn jemand eine bessere tankanzeige hat melden