Thread: new or enum?
View Single Post
Old 20/01/2020, 09:44 PM   #5
RogueDrifter's Avatar
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,193
Reputation: 420
Default Re: new or enum?

Originally Posted by Edvukas View Post
Why enums?
Makes it easier to manage your script and access those variables through the enumerator when things get too much, such as player data (vip,admin,level...etc).

For one off things that aren't related and can't be attached into a group of variables (groups such as player data or vehicle data) you can declare those unique variables in a single shape using 'new' or 'static' depending on the usage.

Does either affect performance? No it's just to not make your project look like spaghetti code.
Originally Posted by Andy
My anti cheat is still relevant *puts shades on*

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link

RogueDrifter is offline   Reply With Quote