[Help] /admins problem
#3

And this is the one that I tried to make:

If a player type /admins he will show a dialog with the online administrators but it didnt work

here's the code:

PHP код:
if(strcmp(cmd"/admins"true) == 0)
        {
        new 
str[128];
        for(new 
0MAX_PLAYERSi++)
               {
               if(
Stats[i][AdminLvl] > && IsPlayerConnected(i))
                   {
                   new 
name[90];
                   
GetPlayerName(i,name,sizeof(name));
                   
format(str,sizeof(str),"%s(id:%d) is Online.",name,i);
                   
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"{FFFFFF}Online Admins"BigString15"Close","");
                   }
               }
               return 
1;
   } 
Reply


Messages In This Thread
[Help] /admins problem - by mickos - 01.08.2012, 17:55
Re: [Help] /admins problem - by Kindred - 01.08.2012, 18:03
Re: [Help] /admins problem - by mickos - 01.08.2012, 18:08
Re: [Help] /admins problem - by Kindred - 01.08.2012, 18:15
Re: [Help] /admins problem - by mickos - 01.08.2012, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)