[AJUDA] Orgs
#1

Nгo estб atualizando as ORGS,porquк se estб tudo certo?

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", "");
    }
Reply


Messages In This Thread
[AJUDA] Orgs - by ViictorDaay- - 31.05.2012, 22:30
Re: [AJUDA] Orgs - by ViniBorn - 31.05.2012, 22:32
Re: [AJUDA] Orgs - by paulor - 31.05.2012, 22:35
Re: [AJUDA] Orgs - by ViictorDaay- - 31.05.2012, 22:57
Re: [AJUDA] Orgs - by paulor - 31.05.2012, 23:10
Re: [AJUDA] Orgs - by ViictorDaay- - 31.05.2012, 23:40
Re: [AJUDA] Orgs - by paulor - 31.05.2012, 23:42
Re: [AJUDA] Orgs - by ViictorDaay- - 31.05.2012, 23:44
Re: [AJUDA] Orgs - by paulor - 31.05.2012, 23:51
Re: [AJUDA] Orgs - by ViictorDaay- - 31.05.2012, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)