Why wont this work?
#1

If someone does /admins it only shows 1 admin even if there are more...

pawn Код:
if(strcmp(cmdtext,"/admins",true) == 0)
    {
        new string[200],string2[50],oadmins = 0;
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(pinfo2[i][pAdminLevel] >= 1)
            {
                format(string,sizeof(string),""lgreen"%s\n",GetPName(i));
                oadmins++;
            }
        }
        format(string2,sizeof(string2),"Online admins: %i",oadmins);
        ShowPlayerDialog(playerid,2351,0,string2,string,"Ok","Close");
        return 1;
    }
Thanks.
Reply


Messages In This Thread
Why wont this work? - by [MWR]Blood - 26.03.2011, 17:11
Re: Why wont this work? - by Zh3r0 - 26.03.2011, 17:15

Forum Jump:


Users browsing this thread: 3 Guest(s)