K
really? but even with normal variables (not global) if you know what i meanIs your code really "global.global.variablename"? You don't need that second "global" if so
friend, i fixed this problem with THIS global variable but i have another problem with other global variable :/ (btw im huuge newbie)Show your code then, I'm going off this line in your screenshot
View attachment 27427
You need to create / initialise the variable before you can try and access it, this is why the error message says "not set before reading it".friend, i fixed this problem with THIS global variable but i have another problem with other global variable :/ (btw im huuge newbie)
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object przejsciemuzyka01:
global variable name 'MUZYKA01' index (100004) not set before reading it.
at gml_Object_przejsciemuzyka01_Create_0 (line 5) - if(global.MUZYKA01 == 1)
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_przejsciemuzyka01_Create_0 (line 5)
// create / initalise the variable
global.MUZYKA01 = 1;
// check if it equals 1
if(global.MUZYKA01 == 1)
{
// do something
}