[Ajuda] Error
#7

Refiz seu comando.
Funcional...

pawn Код:
CMD:pintar(playerid, params[]) {
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), PASTA_CONTAS, aname);
    if(dini_Int(file, "Profissao") == Mecanico || dini_Int(file, "VIP") == 1  || dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid) == 1){
        new tmp[256];
        new cor1,cor2;
        new veiculo;
        tmp = strtok(cmd,idx);
        cor1 = strval(tmp);
        tmp = strtok(cmd, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, Vermelho, "/pintar [cor1] [cor2]");
            return 1;
        }
       
        cor2 = strval(tmp);
        veiculo = GetPlayerVehicleID(playerid);
        if(IsPlayerInVehicle(playerid,veiculo)){
            ChangeVehicleColor(veiculo,cor1,cor2);
            format(string, sizeof(string), "* Mecanico %s(ID: %d) vocк trocou a cor do carro para %d e %d, cobre pelo serviзo.", aname, playerid, cor1, cor2);
            SendClientMessage(playerid, Blue, string);
            return 1;
        }
    }
}
Reply


Messages In This Thread
Error - by Rodrigo_Avenged - 05.02.2013, 14:10
Re: Error - by WotusPower - 05.02.2013, 14:13
Re: Error - by MatheusAlcapone - 05.02.2013, 14:14
Re: Error - by Rodrigo_Avenged - 05.02.2013, 14:17
Re: Error - by WotusPower - 05.02.2013, 14:21
Re: Error - by MatheusAlcapone - 05.02.2013, 14:22
Re: Error - by WotusPower - 05.02.2013, 14:28
Re: Error - by zSuYaNw - 05.02.2013, 18:44
Re: Error - by Rodrigo_Avenged - 05.02.2013, 23:51

Forum Jump:


Users browsing this thread: 4 Guest(s)