Writing after commas (Arguments/parameters)
#3

Tried:

pawn Код:
stock SetAdminCommand(command[], ...)
{
    for(new level = 1; level < numargs(); level++)
    {
        if(getarg(level))
        {
            Group_SetGlobalCommand(Command_GetID(command), false);

            new cl = 0;
            while(cl != MAX_ADMIN_LEVELS)
            {
                cl += 1;
                if(cl == level)
                {
                    Group_SetCommand(SerwerData[E_SERWER_GROUP_ADMINS][cl], Command_GetID(command), true);
                }

                else
                {
                    Group_SetCommand(SerwerData[E_SERWER_GROUP_ADMINS][cl], Command_GetID(command), false);
                }
            }
        }
       
        else
        {
            Group_SetGlobalCommand(Command_GetID(command), true);
        }
    }
}
Not working at all..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)