29.06.2017, 23:19
static Float: combu;
TextDrawTextSize(textVelocimetro[6], (140.0 - ((101.0 * --combu) / 100)), 0.0);
TextDrawShowForPlayer(playerid, textVelocimetro[6]);
if(combu< 100.0) SetTimerEx("AtVelo", 100, true, "i", playerid);
else if(combu--)
{
SendClientMessage(playerid, -1, "Acabou a gasolina.");
}
onde uso isso (to usando na callback do timer ) ta certo?
TextDrawTextSize(textVelocimetro[6], (140.0 - ((101.0 * --combu) / 100)), 0.0);
TextDrawShowForPlayer(playerid, textVelocimetro[6]);
if(combu< 100.0) SetTimerEx("AtVelo", 100, true, "i", playerid);
else if(combu--)
{
SendClientMessage(playerid, -1, "Acabou a gasolina.");
}
onde uso isso (to usando na callback do timer ) ta certo?