[Ajuda] 2 Comandos com Erros
#1

Pessoal, aqui tenho comandos /contaslider e /limparlider

Pois й os dois hб erros e nгo consigo arrumar

o /contaslider nгo some o player da lista do /orgs. Apenas sai de Lнder

o /limparlider limpa sу o nome dele na lista do /orgs. Mais nгo limpa o Lнder.


O que eu faзo agora? Comandos:

/contaslider

pawn Код:
if(!strcmp("/contaslider", cmdtext, true))
    {
        if(PlayerInfo[playerid][pLider] == 0)
        {
            SendClientMessage(playerid,COLOR_GREY," Vocк nгo й lнder de nenhuma organizaзгo!");
            return 1;
        }
        format(string, sizeof(string), "PLAYER: %s pediu contas de lider da org:[%s]",PlayerName(playerid), NomeORG(GetPlayerOrg(playerid)));
        LideresLog(string);
        DemitirInfoOrg(PlayerName(playerid));
        gTeam[playerid] = 3;
        PlayerInfo[playerid][pTeam] = 3;
        PlayerInfo[playerid][pMembro] = 0;
        PlayerInfo[playerid][pLider] = 0;
        PlayerInfo[playerid][pCargo] = 0;
        PlayerInfo[playerid][pSpawn] = 0;
        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 226; }
        SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
        MedicBill[playerid] = 0;
        SpawnPlayer(playerid);
        MedicBill[playerid] = 0;
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pediu as contas, agora vocк й um Civil novamente!");
        return 1;
    }
/limparlider

pawn Код:
if (strcmp("/limparlider", cmdtext, true, 10) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 1337)
        {
        SendClientMessage(playerid, COLOR_GRAD2, "Somente admins master ou dono podem usar este comando!");
        return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USE: /limparlider [organizaзгo]");
            return 1;
        }
        new Vaga2 = strval(tmp);
        if(Vaga2 < 1 || Vaga2 > 27) { SendClientMessage(playerid, COLOR_GREY, "Vaga mнnima 1 mбximo 27!"); return 1; }
        new id=GetPlayerID(InfoOrg[Vaga2][Lider]);
        format(string, sizeof(string), "ADMIN: %s limpou a vaga %d do lнder %s",PlayerName(playerid), Vaga2, InfoOrg[Vaga2][Lider]);
        LideresLog(string);
        if(IsPlayerOnline(InfoOrg[Vaga2][Lider])) DemitirLider(id);
        strmid(InfoOrg[Vaga2][Lider], "Ninguem", 0, strlen("Ninguem"), 255);
        format(gstring, 128, "ORG Arquivos/Org%d.cfg", Vaga2);
        dini_Set(gstring,"Lider","Ninguem");
        format(string, sizeof(string), "Vocк limpou o lнder da organizaзгo Nє %d",Vaga2);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        return 1;
 }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)