Hi!
It looks like GLOBAL doesnt work when using procedures that calls eachother.
I have thrown together a small program illustrating this.
Variable GAME is supposed to be 999, because Procedure PB is changing it.
Variable ERT is being added to though, also being inside Procedure PB...
GAME = 100
Global GAME
ERT = 500
Global ERT
do
PA
Cls 0
Print "Game: ";GAME
Print "Ert: "; ERT
Wait Vbl
Loop
Procedure PA
//Call Procedure 2
PB
End Proc
Procedure PB
GAME = 999
Add ERT, 1
End Proc
Corrected! Thank you for this one, it was bugging me since a long time, and thanks to your example I found it. Corrected for v0.9.2.2! :)