gms_global_get_real

Usage: gms_global_get_real ( "variable" )

Description

Returns the value saved in the given variable. When the variable is a string, or doesn't exist, 0 (zero) is returned.

Replies (3)

Last message on 3 May 2017

Dragaar on 28 Apr 2017, 15:03:46
Hello and thanks in advance for your time..I'm facing a problem when using the global variable functions in my game to set the global player's turn (so as everyone is moving his units only in his turn). After 2 or 3 moves the game crashes. Any idea what might be happening?

FATAL ERROR in
action number 1
of Step Event0
for object GMS:

Push :: Execution Error - Variable Get 100000.value(100593, -2147483648)
at gml_Script_XGms_ve_writeValue
stack frame is
gml_Script_XGms_ve_writeValue (line 0)
gml_Script_XServer_writevariable
gml_Script_XServer_step
gml_Script_gms_step
gml_Object_GMS_Step_0
Size43 (Administrator) on 2 May 2017, 13:22:50
Hey,

I've identified the issue & I am working on a patch which will be available soon.
Dragaar on 3 May 2017, 12:12:29
Thanks:)