View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-11-2019 , 15:19   Re: Enum Structs Available This Holiday Season
Reply With Quote #33

Quote:
Originally Posted by _pHabb View Post
Code:
enum _:Roles
{
    Vip,
    Moderator,
    Admin
};

new players[MAXPLAYERS + 1];

// Usage: players[client] = Admin;
How this code will look in the new syntax?
PHP Code:

enum Role
{
    
Vip 0,
    
Moderator,
    
Admin
};

Role players[MAXPLAYERS 1];
// Usage: players[client] = Admin; 
__________________
Ilusion9 is offline