27.01.2015, 18:33
I want to be able to check enums between scripts without having to create a function for each.
I tried this
Though it doesn't seem to work.
Basically, what i'm aiming to do, is if i'm in a different script module, I want to be able to use
to return their admin level, for example. I just don't want to have to create a separate function for each value, because of course, I could just use something like GetPlayerAdminLevel, or GetPlayer whatever. Though I don't want to spend all that time making all of those functions if I can get away with something a little neater.
I tried this
pawn Код:
public GetEnumInt(enumname[], id, var[]) return enumname[id][var];
Basically, what i'm aiming to do, is if i'm in a different script module, I want to be able to use
pawn Код:
GetEnumInt("pInfo", playerid, "Admin");