SA-MP Forums Archive
[Ajuda] Comando bugado. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comando bugado. (/showthread.php?tid=444069)



Comando bugado. - DannielCooper - 15.06.2013

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 length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
          idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USE: /limparvaga [ID da Vaga] [Motivo]");
            return 1;
        }
        new Vaga2 = strval(tmp);
        if(Vaga2 < 1 || Vaga2 > 25) { SendClientMessage(playerid, COLOR_GREY, "Vaga mнnima 1 mбximo 25!"); return 1; }
        new id=GetPlayerID(InfoOrg[Vaga2][Lider]), str[64];
        if(IsPlayerOnline(InfoOrg[Vaga2][Lider]))
        {
            DemitirLider(id);
            format(string, sizeof(string), "* Vocк Foi Tirado de Lнder Motivo: %s",result);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
        }
        else
        {
            format(str, sizeof(str), "Agendados/ORG%s.ini",InfoOrg[Vaga2][Lider]);
            dini_Create(str);
            dini_Set(str,"Nome",PlayerName(playerid));
            dini_IntSet(str,"Org",Vaga2);
            dini_Set(str,"Motivo",result);
        }
        strmid(InfoOrg[Vaga2][Lider], "Ninguem", 0, strlen("Ninguem"), 255);
        format(gstring,sizeof(gstring), "InfoOrg/Org%d.cfg", Vaga2);
        dini_Set(gstring,"Lider","Ninguem");
        format(string, sizeof(string), "Vocк limpou o lнder da organizaзгo Nє %d, Motivo: %s",Vaga2,result);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        Atualizar3Dtexts();
        //LabelOrg();
        return 1;
    }
Eu re-fiz esse comando umas 200 vezes... Nгo dб erro nenhum, mais ele nгo limpa o lнder. Deve ser um bug, que eu realmente nгo sei onde pode estar... Entгo eu apelo pra ajuda de vocкs ae... :P


Re: Comando bugado. - BielCOP - 15.06.2013

Veja se as ScriptFiles estao de acordo.


Re: Comando bugado. - DannielCooper - 15.06.2013

Quote:
Originally Posted by BielCOP
Посмотреть сообщение
Veja se as ScriptFiles estao de acordo.
Sim, estб tudo de acordo....

@EDIT

Jб refiz o comando e deu certo!


Re: Comando bugado. - Wellington1999 - 15.06.2013

vc fez ? pegou do brasil play city nob


Re: Comando bugado. - MonFiTy - 15.06.2013

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
vc fez ? pegou do brasil play city nob
What nao acredito que li isso vei
oia oque o cara falo
Код:
Eu re-fiz esse comando umas 200 vezes... Nгo dб erro nenhum, mais ele nгo limpa o lнder. Deve ser um bug, que eu realmente nгo sei onde pode estar... Entгo eu apelo pra ajuda de vocкs ae... :P
agora me explica onde tu viu que ele fez o CMD tou vesgo ?


Re: Comando bugado. - Prefacio - 15.06.2013

Quote:
Originally Posted by MonFiTy
Посмотреть сообщение
What nao acredito que li isso vei
oia oque o cara falo
Код:
Eu re-fiz esse comando umas 200 vezes... Nгo dб erro nenhum, mais ele nгo limpa o lнder. Deve ser um bug, que eu realmente nгo sei onde pode estar... Entгo eu apelo pra ajuda de vocкs ae... :P
agora me explica onde tu viu que ele fez o CMD tou vesgo ?
e assim msm a vida quando Pensamos e Trabalhamos outros CRITICAM falando Merda