[FilterScript] mVelocimetro v1.0 (0.3e)
#5

Cara gostei do design mбs se liga nisso aki.

pawn Код:
#define MAX_GASOLINA          99+1

//se era pra definir isso pra que a soma? n era mais facil por 100 :)
a n ser que fosse adcionar na condiзгo..

if(condicao == MAX_GASOLINA-1) //valor total - 1 == 99
parei quando vi isso
pawn Код:
SetTimer("Velocimetro", 1, 1);


public Velocimetro(){
    new Float:VehicleHP;
    for(new i = 0; i < MAX_PLAYERS; i++){
        new vehicleid = GetPlayerVehicleID(i);        
        new _str[256];        
        GetVehicleHealth(vehicleid, VehicleHP);        
        format(_str, sizeof(_str), "~b~~>~Veiculo:~w~ %s~n~~b~~>~Velocidade:~w~ %d KM/h~n~~b~~>~Combustivel: ~W~%d%%~n~~b~~>~Lataria: ~W~%0.0f%%~n~~b~~>~Blindagem: ~W~%d%%~n~~b~~>~Localizacao:~w~ %s", vehName[GetVehicleModel(vehicleid)-400], GetPlayerSpeed(i, true), Gasolina[vehicleid], VehicleHP/10, Blindagem[vehicleid], ReturnPlayerZone(i));
        TextDrawSetString(Speedometer[i], _str);        
    }  
}
na moral? isso vai travar o sv todo kk

veja um geito facil de arruma isto
https://sampforum.blast.hk/showthread.php?tid=399026
Reply


Messages In This Thread
mVelocimetro v2.0 - Atualizado!! - by MegaStyle157 - 20.03.2013, 12:30
Re: mVelocimetro v1.0 (0.3e) - by iFox - 20.03.2013, 13:35
Re: mVelocimetro v1.0 (0.3e) - by Jumper. - 20.03.2013, 13:44
Re: mVelocimetro v1.0 (0.3e) - by MegaStyle157 - 20.03.2013, 14:10
Re: mVelocimetro v1.0 (0.3e) - by Sky™ - 20.03.2013, 14:24
Re: mVelocimetro v1.0 (0.3e) - by zSuYaNw - 20.03.2013, 14:36
Re: mVelocimetro v1.0 (0.3e) - by VenoN - 20.03.2013, 14:37
Re: mVelocimetro v1.0 (0.3e) - by Maklister - 20.03.2013, 15:48
Re: mVelocimetro v1.0 (0.3e) - by Lуs - 20.03.2013, 16:28
Re: mVelocimetro v1.0 (0.3e) - by LuxuN - 20.03.2013, 16:28

Forum Jump:


Users browsing this thread: 3 Guest(s)