SA-MP Forums Archive
[Ajuda] Erro no Comando - 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] Erro no Comando (/showthread.php?tid=370673)



Erro no Comando - iOakley - 20.08.2012

oque hб de errado com esse comando

pawn Код:
dcmd_orgs(playerid, params[])
    {
        new org[128],org2[128],string[2048],tmp[32],giveid;
        for(new i = 1; i < MAX_ORGS; ++i)
        {
            format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
            format(tmp,32,"%s",dini_Get(org, OrgsCargos[0]));

            /*if(strcmp(tmp,"Nenhum",true)==0 || strlen(tmp) < 3)
            {
                format(org2,128,"{C2A2DA}%s: Nenhum\n",OrgsNames[i]);
                continue;
            }*/


            if(strlen(tmp) < 3)
                tmp = "Ninguйm";

            giveid = ReturnUser(tmp);
            if(IsPlayerConnected(giveid))
                format(org2,128,"{C2A2DA} %d >> %s: %s - {00D900}Online\n", i, OrgsNames[i], tmp);

            else
                format(org2,128,"{C2A2DA} %d >> %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp);

            strcat(string, org2);
        }
        #pragma unused params
        return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
    }
da um help ae porfavor...


Re: Erro no Comando - iOakley - 20.08.2012

Galera me ajuda ae please!!!


Re: Erro no Comando - Don_Speed - 20.08.2012

Voce precisa atualizar a include dini pois esta que vem com esse gm ta desatualizada!!


Re: Erro no Comando - iOakley - 21.08.2012

vlw! +rep