Globals outside a UserType

BlitzMax Forums/BlitzMax Programming/Globals outside a UserType

DirtBikeDude(Posted 2007) [#1]
I have a Function within a UserType that needs to modify a Global outside the UserType. When I try my code I get the error "Compile Error: Operator ''-'' can not be used with strings".
The variable I'm trying to modify is Energy:Float at the top.
I've been lost since BlitzWiki's been offline. What are the possible solutions?




DirtBikeDude(Posted 2007) [#2]
Oh man I just noticed I subtracting a string from a float and that was the problem.