FlameRooster
Member
FATAL ERROR in action number 1 of Alarm Event for alarm 0 for object obj_transfer_plate: Variable <unknown_object>.<unknown variable="">(100261, -2147483648) not set before reading it. at gml_Object_obj_transfer_plate_Alarm_0 ############################################################################################ -------------------------------------------------------------------------------------------- stack frame is gml_Object_obj_transfer_plate_Alarm_0 (line -1)
My players who play my game get this error popping up. I can't reproduce the error myself. Can anyone explain what I am doing wrong in my code?
I didn't initialize int1, int2, and int3 at all other than in if statements. Would that be the cause of this? I can't tell if the issue would be fixed or not because I can't reproduce the error, lol...
obj_transfer_plate - Alarm 0 Event
My players who play my game get this error popping up. I can't reproduce the error myself. Can anyone explain what I am doing wrong in my code?
I didn't initialize int1, int2, and int3 at all other than in if statements. Would that be the cause of this? I can't tell if the issue would be fixed or not because I can't reproduce the error, lol...
obj_transfer_plate - Alarm 0 Event
Code:
if (global.restaurantSlot[restaurantNumber, 0] == obj_character0) {
int1 = 0;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character0) {
int2 = 0;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character0) {
int3 = 0;
}
if (global.restaurantSlot[restaurantNumber, 0] == obj_character1) {
int1 = 1;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character1) {
int2 = 1;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character1) {
int3 = 1;
}
if (global.restaurantSlot[restaurantNumber, 0] == obj_character2) {
int1 = 2;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character2) {
int2 = 2;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character2) {
int3 = 2;
}
if (global.restaurantSlot[restaurantNumber, 0] == obj_character3) {
int1 = 3;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character3) {
int2 = 3;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character3) {
int3 = 3;
}
if (global.restaurantSlot[restaurantNumber, 0] == obj_character4) {
int1 = 4;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character4) {
int2 = 4;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character4) {
int3 = 4;
}
if (global.restaurantSlot[restaurantNumber, 0] == obj_character5) {
int1 = 5;
} else if (global.restaurantSlot[restaurantNumber, 1] == obj_character5) {
int2 = 5;
} else if (global.restaurantSlot[restaurantNumber, 2] == obj_character5) {
int3 = 5;
}
if (global.restaurantSlot[restaurantNumber, 0] != "Empty") {
with instance_create_depth(x+10, y+30, -1001, obj_transfer_slot) {
image_index = other.int1;
restaurantNumber = other.restaurantNumber;
slotNumber = 0;
}
} else {
with instance_create_depth(x+10, y+30, -1001, obj_transfer_slot) {
restaurantNumber = other.restaurantNumber;
slotNumber = 0;
}
}
if (global.restaurantSlot[restaurantNumber, 1] != "Empty") {
with instance_create_depth(x+110, y+30, -1001, obj_transfer_slot) {
image_index = other.int2;
restaurantNumber = other.restaurantNumber;
slotNumber = 1;
}
} else {
with instance_create_depth(x+110, y+30, -1001, obj_transfer_slot) {
restaurantNumber = other.restaurantNumber;
slotNumber = 1;
}
}
if (global.restaurantSlot[restaurantNumber, 2] != "Empty") {
with instance_create_depth(x+210, y+30, -1001, obj_transfer_slot) {
image_index = other.int3;
restaurantNumber = other.restaurantNumber;
slotNumber = 2;
}
} else {
with instance_create_depth(x+210, y+30, -1001, obj_transfer_slot) {
restaurantNumber = other.restaurantNumber;
slotNumber = 2;
}
}
Last edited: