Racemaniac
Scorched GP programmer
*edit* mostly solved (see 3th post, pointer prob as a suspected ^^ )
i'm cleaning up the code of my tank game a bit, and i've come across some disturbing issues :s
for example i have a global variable turn. wheter i assign value 0 to it or not, doesn't matter, when i use it the first time it contains some random value i have got no control over, i can set the value then to 0 and it works afterwards, but that's still worrying...
even worse are my arrays, in tests i've been able to put 40 numbers into an array 20 numbers, yet now i have to make an array of 20 ints to store 6 player id's, if i make an array of 6 ints for that i get strange errors about a process not being active... WTF?????
some strange things are happening in the memory of my program, which i might understand if i was using pointers, you can do dangerous things with pointers which will indeed mess up everything, but i don't... anyone got a clue what's going on? i don't want to have random errors due to this you know...
i'm cleaning up the code of my tank game a bit, and i've come across some disturbing issues :s
for example i have a global variable turn. wheter i assign value 0 to it or not, doesn't matter, when i use it the first time it contains some random value i have got no control over, i can set the value then to 0 and it works afterwards, but that's still worrying...
even worse are my arrays, in tests i've been able to put 40 numbers into an array 20 numbers, yet now i have to make an array of 20 ints to store 6 player id's, if i make an array of 6 ints for that i get strange errors about a process not being active... WTF?????
some strange things are happening in the memory of my program, which i might understand if i was using pointers, you can do dangerous things with pointers which will indeed mess up everything, but i don't... anyone got a clue what's going on? i don't want to have random errors due to this you know...