Writing after commas (Arguments/parameters)
#1

pawn Код:
stock SetAdminCommand(command[], level)
{
    if(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);
    }
}
Any ideas how to write levels after commas?

pawn Код:
SetAdminCommand("ban", 1, 2, 3, 4, 5, 6[...]);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)