I've defined an array at the top of my code as follows:
Code:
new liveGrens[2] = {0, 0}
And, at the end of the plugin_init, just to be sure (because of this bug) i'm zero it again with:
Code:
liveGrens[0] = 0
liveGrens[1] = 0
Now I've gone through my code and the only operations I do on this array is adding or subtracting one from the value with, for example:
Code:
liveGrens[0] += 1
liveGrens[1] -= 1
Thing is, liveGrens[1] is fine and never has a problem but liveGrens[0] for some reason seems to hold some stupidly high number, for example 1147707392 even after its initialised and before anything is done with it.
I have gone over my code and checked theres no erronious assignment operators instead of comparison ones and it looks fine.
Anyone have any idea what it is?
I can probably code a work around but I'd rather not do it if its something simple to fix that I've overlooked.