[AJUDA] Comando /reparar bug
#1

Pessoal o comando /reparar que eu criei tб bugado, quando eu digito /reparar aparece, mais quando digito /reparar [id] daн aparece: Comando nгo Existente.
pawn Код:
if(strcmp(cmdtext, "/reparar", true) == 0)
    {
        new giveplayerid;
        new veiculo2 = GetPlayerVehicleID(playerid);

        if(BaggageCar(veiculo2))
        {
            SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no Carro de Bagagens");
            return 1;
        }
        if(!IsPlayerInAnyVehicle(giveplayerid))
        {
            SendClientMessage(playerid, COLOR_RED, "Esse jogador nгo estб em um veнculo");
            return 1;
        }
       
        giveplayerid = strval(tmp);
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "USE: /reparar [id]");
            return 1;
        }
        SetVehicleHealth(giveplayerid, 100);
        RepairVehicle(giveplayerid);

        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Comando /reparar bug - by GuikBretas - 13.07.2011, 13:20
Re: [AJUDA] Comando /reparar bug - by Gabriel Duarte - 13.07.2011, 14:07
Re: [AJUDA] Comando /reparar bug - by Gabriel Duarte - 13.07.2011, 16:46
Re: [AJUDA] Comando /reparar bug - by Josma_cmd - 13.07.2011, 17:00
Re: [AJUDA] Comando /reparar bug - by FreeGells - 13.07.2011, 17:02
Re: [AJUDA] Comando /reparar bug - by Gabriel Duarte - 13.07.2011, 17:04
Re: [AJUDA] Comando /reparar bug - by Josma_cmd - 13.07.2011, 17:09
Re: [AJUDA] Comando /reparar bug - by Gabriel Duarte - 13.07.2011, 17:12
Re: [AJUDA] Comando /reparar bug - by GuikBretas - 13.07.2011, 19:19
Re: [AJUDA] Comando /reparar bug - by Gabriel Duarte - 13.07.2011, 19:29

Forum Jump:


Users browsing this thread: 3 Guest(s)