[Ajuda] Ajuda com Switch ou dica de como fazer melhor
#1

pawn Код:
new Float:VidaVeiculo, Veiculo = GetPlayerVehicleID(playerid);
    GetVehicleHealth(Veiculo, VidaVeiculo);
    switch(VidaVeiculo)
    {
        case 950 .. 1000: format(String, sizeof(String),"~g~100");
        case 900 .. 949: format(String, sizeof(String),"~g~90");
        case 800 .. 899: format(String, sizeof(String),"~g~80");
        case 700 .. 799: format(String, sizeof(String),"~y~70");
        case 600 .. 699: format(String, sizeof(String),"~y~60");
        case 500 .. 599: format(String, sizeof(String),"~y~50");
        case 400 .. 499: format(String, sizeof(String),"~y~40");
        case 300 .. 399: format(String, sizeof(String),"~r~30");
        case 200 .. 299: format(String, sizeof(String),"~r~20");
        case 100 .. 199: format(String, sizeof(String),"~r~10");
        case 0 .. 99: format(String, sizeof(String),"~l~Corre!");
    }
    TextDrawSetString(EstLatariaTD, String);
A String fica sem nada.. o switch nгo retorna em nada =/
Reply


Messages In This Thread
Ajuda com Switch ou dica de como fazer melhor - by Hiuship - 05.01.2015, 04:03
Re: Ajuda com Switch ou dica de como fazer melhor - by Hiuship - 05.01.2015, 12:39
Re: Ajuda com Switch ou dica de como fazer melhor - by n0minal - 05.01.2015, 13:00
Re: Ajuda com Switch ou dica de como fazer melhor - by Hiuship - 05.01.2015, 13:05
Re: Ajuda com Switch ou dica de como fazer melhor - by n0minal - 05.01.2015, 13:10
Re: Ajuda com Switch ou dica de como fazer melhor - by Hiuship - 05.01.2015, 13:38
Re: Ajuda com Switch ou dica de como fazer melhor - by n0minal - 05.01.2015, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)