gms_global_set
Usage: gms_global_set ( "variable", value )
Description
Sets the global variable 'variable' to the given value, and sends it to all other clients connected to the server.
Replies (4)
Last message on 4 Sep 2017
Hi!
Global variables are readable through sessions? (if a player is at the session 1 and another player is at the session 2, both can share global variables?)
Size43
(Administrator)
on
4 Sep 2017, 11:15:32
Apologies for the delay, I've been having some health issues.
Global variables are different for each session. GameINIs/PlayerINIs are shared accross sessions.
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:57
Hey,
I've identified the issue & I am working on a patch which will be available soon.