Variable not 'writing'

BlitzPlus Forums/BlitzPlus Beginners Area/Variable not 'writing'

acolite246(Posted 2008) [#1]
In the beginning of my code I have this

global mapname = "Road"

yet in the Blitz debugger it says this

Mapname = 0



Why is this happening?
I need that variable!


Who was John Galt?(Posted 2008) [#2]
Make it mapname$ otherwise the compiler thinks it's a variable that takes a number.


Matty(Posted 2009) [#3]
The first time you refer/declare a variable you need to specify whether it is a float or a string (with # or $ appended to the variable name) otherwise blitz treats it as an integer.