[Ajuda] Problema "/veh"
#1

Bem o codigo й esse sу que quando eu digito o coamndo aparece a mensagem "Vocк nгo estб trabalhando! (/trabalhar)" mesmo eu estando trabalhando alguem poderia me ajudar ?

pawn Код:
if(strcmp(cmd, "/veh", true) == 0 || strcmp(cmd, "/criarveiculo", true) == 0)
    {
    if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342)
        {
            SendClientMessage(playerid, 0xFF3300AA, "Vocк nгo estб trabalhando! (/trabalhar)");
            return 1;
        }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        {
        SendClientMessage(playerid, 0xFF3300AA, "| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
        return 1;
    }
    new
            veiculo = strval(tmp);
    if(veiculo < 400 || veiculo > 611)
        {
            SendClientMessage(playerid, 0xFF3300AA, "| ERRO | Somente veнculos entre os ID: 400 б 611");
            return 1;
        }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF3300AA, "| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
            return 1;
        }
    new
            color1 = strval(tmp);
    tmp = strtok(cmdtext, idx);
    new
            color2 = strval(tmp);
    if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF3300AA, "| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
            return 1;
    }
    DestroyVehicle(VeiculoID[playerid]);
    vModel = CreateVehicle(veiculo, ppos[0], ppos[1], ppos[2], 360, color1, color2, -1);
    PutPlayerInVehicle(playerid, vModel, 0);
    VeiculoID[playerid] = GetPlayerVehicleID(playerid);
    format(gstring, sizeof(gstring), "| INFO | %s id: %d cor1 %d e cor2 %d criado com sucesso!", Veiculos[GetVehicleModel(vModel)-400], veiculo, color1, color2);
    SendClientMessage(playerid, 0xFFFF33AA, gstring);
    format(gstring, 256, "{FFFF33}Veнculo de {FFFFCC}%s {FFFF33}id {FFFFCC}%d", PlayerName(playerid), playerid);
    TextVeH = Create3DTextLabel(gstring, -1, 0.0, 0.0, 0.0, 50.0, 0, 1);
    Attach3DTextLabelToVehicle(TextVeH, vModel, 0.0, 0.0, 0.0+1);
    return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[Ajuda] Problema "/veh" - by wallacematheus - 04.11.2011, 22:22
Re: [Ajuda] Problema "/veh" - by steki. - 04.11.2011, 22:31
Re: [Ajuda] Problema "/veh" - by Lуs - 05.11.2011, 00:30
Re: [Ajuda] Problema "/veh" - by wallacematheus - 05.11.2011, 01:08
Re: [Ajuda] Problema "/veh" - by Dolby - 05.11.2011, 01:13

Forum Jump:


Users browsing this thread: 1 Guest(s)