Clearing out an enum?
#8

Once again, the same basic code like in reply #3
pawn Код:
enum E_VAR {
    var1,
    var2[10],
    var3
}

new var[E_VAR];

for(new i; i < sizeof(var); i++) {
    var[E_VAR: i] = 0;
}
This is fully enough to clear all enum variables and arrays, due to the fact how enums work!
Reply


Messages In This Thread
Clearing out an enum? - by dowster - 21.07.2011, 16:30
Re: Clearing out an enum? - by Mauzen - 21.07.2011, 16:38
Re: Clearing out an enum? - by MadeMan - 21.07.2011, 16:40
Re: Clearing out an enum? - by dowster - 21.07.2011, 16:41
Re: Clearing out an enum? - by rjjj - 21.07.2011, 16:44
Re: Clearing out an enum? - by MadeMan - 21.07.2011, 16:45
Re: Clearing out an enum? - by Mauzen - 21.07.2011, 16:46
AW: Clearing out an enum? - by Nero_3D - 21.07.2011, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)