adminstring
#1

Can someone please help me with this, if there are 2 admins online it only shows 1, and it does nothing if there are no admins online...

PHP код:
CMD:admins(playeridparams[])
{
    new 
adminstring[128];
    if(
IsPlayerConnected(playerid))
    {
      for (new 
0MAX_PLAYERSi++)
      {
        if(
IsPlayerConnected(i))
        {
          if(
PlayerInfo[i][pAdmin] > 0)
          {
            
format(adminstringsizeof(adminstring),"{FFFFFF}%s%s {FFFF00}[ID:%d]{FFFFFF}\n"adminstringPlayerName(i), i);
          }
        }
      }
    
ShowPlayerDialog(playerid,DIALOG_ONLINEADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close","");
    return 
1;
    }

Reply


Messages In This Thread
adminstring - by Melktert - 12.04.2017, 20:43
Re: adminstring - by Sew_Sumi - 12.04.2017, 20:52
Re: adminstring - by DarkSkull - 12.04.2017, 21:12
Re: adminstring - by Kraeror - 12.04.2017, 21:27
Re: adminstring - by DarkSkull - 12.04.2017, 21:39
Re: adminstring - by GangstaSunny. - 12.04.2017, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)