g_iWeapCount has to be constant.
Either make it a conostant/defined or get rid of it in defining the arrays. I suggest the later.
You should also make the first array const as well
__________________
What an elegant solution to a problem that doesn't need solving....