SA-MP Forums Archive
Resetting Enum. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Resetting Enum. (/showthread.php?tid=511303)



Resetting Enum. - jihadmeneer - 04.05.2014

Код:
What is the best way to reset an enum?

Код:
new AccountData[MAX_PLAYERS][_accountData];
NOTE: I also got strings/Variables with array's in the enum

Код:
for(new x = 0; x < (_:_accountData); x++)
    {
        AccountData[playerid][_accountData:x] = 0;
    }
I tried that but it's giving tag mismatch warning
Fixed, nevermind.