[AJUDA] Dificuldades no sistemade veнculo
#1

Galera, nгo estou conseguindo puxar o valor do veнculo:
pawn Код:
if(strcmp(x_nr,"comprar",true) == 0)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "[!] /v comprar [MODEL]");
                    return 1;
                }
                new veh = strval(tmp);
                if(GetPlayerMoney(playerid) < ObeterPv()) return SCM(playerid, -1, "Dinheiro insuficiente.");
            }

public ObeterPv() {
    new veh;
    if(veh == 401) return 42000;
    else if(veh == 401) return 25000;
    else if(veh == 402) return 75000;
    else if(veh == 403) return 32000;
    else if(veh == 404) return 19000;
    else if(veh == 405) return 50000;
    else return 0;
}
Ele nгo estб puxando o valor do MODEL.
Reply


Messages In This Thread
[AJUDA] Dificuldades no sistemade veнculo - by felipe360 - 04.02.2012, 22:56
Re: [AJUDA] Dificuldades no sistemade veнculo - by rjjj - 04.02.2012, 23:25
Re: [AJUDA] Dificuldades no sistemade veнculo - by felipe360 - 04.02.2012, 23:42
Re: [AJUDA] Dificuldades no sistemade veнculo - by Ricop522 - 05.02.2012, 01:15

Forum Jump:


Users browsing this thread: 2 Guest(s)