Variable not set(synchronization
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object janbulletmp:
Variable janbulletmp.i(100005, -2147483648) not set before reading it.
at gml_Object_janbulletmp_CreateEvent_1 (line 2) - gms_instance_sync(i, is_extended, "canshoot")
############################################################################################
create event in janbulletmp
gms_instance_sync_var_add("canshoot",canshoot);
gms_instance_sync(i, is_extended, "canshoot")
i have tried thosuands of combinations but when i press space(shooting key) the game crashes. I googled everywhere and looked at forums but couldnt get an answer
Replies (1)
Last message on 3 Dec 2017
Size43
(Administrator)
on
3 Dec 2017, 13:39:34
'i' must be the id of the instance. If you place the syncing code in the create event, you can use 'id'.