/staff command repeats itself.
#1

Hi

I have madfe a /staff command and for some reason it only shows your name (on everything that is) and repeats itself over and over. This is teh code:

PHP код:
command(staffplayeridparams[])
{
    
#pragma unused params
    
new string[128];
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(playerid))
        {
            
SendClientMessage(playeridCOLOR_ORANGE". : : Administrators : : .");
            if(
PlayerInfo[playerid][pAdmin] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4}: (Level %d) {%s}"RPName(playerid), PlayerInfo[playerid][pAdmin], GetAwayStatus(playerid));
                
SendClientMessage(playeridGREYstring);
            }
            
SendClientMessage(playeridCOLOR_ORANGE". : : Moderators : : .");
            if(
PlayerInfo[playerid][pModerator] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4} {%s}"RPName(playerid), GetAwayStatus(i));
                
SendClientMessage(playeridGREYstring);
            }
            
SendClientMessage(playeridCOLOR_ORANGE". : : Helpers : : .");
            if(
PlayerInfo[playerid][pHelper] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4} {%s}"RPName(playerid), GetAwayStatus(playerid));
                
SendClientMessage(playeridGREYstring);
            }
        }
    }

Reply


Messages In This Thread
/staff command repeats itself. - by OMonger - 24.10.2015, 10:31
Re: /staff command repeats itself. - by JaKe Elite - 24.10.2015, 10:38
Re: /staff command repeats itself. - by jlalt - 24.10.2015, 10:59
Re: /staff command repeats itself. - by OMonger - 24.10.2015, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)