09.06.2012, 15:09
Quote:
@Jonny5: https://sampforum.blast.hk/showthread.php?tid=57018 see 'assumptions'.
Here's an example, using an array. Note that I haven't tested this: http://pastebin.com/r9jfYJUf Remove all other AddPlayerClass lines from your mode as it will fuck this up, put your data in to the array in this format: pawn Код:
|
your code makes the same assumptions but you have an array and enum.....
using
new var gCJ = AddStaticClass(....)
and checking the class == gCJ is the way not to assume
your code is in jeopardy of a array out of bounds,
because you assume no other scripts add a class.