H
Halas
Guest
Hi Guys,
I updated my program today to see a few error messages. I managed to get through most of them, but this one is currently proving to be a nasty one I can't get.
Now this is relating to the script: ev_notify
from line:
It says
The Enum being:
Any suggestions?
I updated my program today to see a few error messages. I managed to get through most of them, but this one is currently proving to be a nasty one I can't get.
___________________________________________
############################################################################################
ERROR in
action number 1
of Other Event: User Defined 2
for object obj_inv_panel:
script_execute argument 1 incorrect type (undefined) expecting a Number (YYGI32)
at gml_Script_ev_notify (line 49) - script_execute(_script, _inv, _event, _updated_slots);
############################################################################################
gml_Script_ev_notify (line 49)
gml_Script_item_switch (line 38) - ev_notify(_inv1, EVENTS.inv_updated);
gml_Object_obj_inv_panel_Other_12 (line 18) - item_switch(inv, _pressed_slot.index, _mouse_slot.inv, _mouse_slot.index);
gml_Object_obj_inv_panel_equipment_Other_12 (line 57)
gml_Object_obj_inv_mouse_Step_0 (line 9)
############################################################################################
ERROR in
action number 1
of Other Event: User Defined 2
for object obj_inv_panel:
script_execute argument 1 incorrect type (undefined) expecting a Number (YYGI32)
at gml_Script_ev_notify (line 49) - script_execute(_script, _inv, _event, _updated_slots);
############################################################################################
gml_Script_ev_notify (line 49)
gml_Script_item_switch (line 38) - ev_notify(_inv1, EVENTS.inv_updated);
gml_Object_obj_inv_panel_Other_12 (line 18) - item_switch(inv, _pressed_slot.index, _mouse_slot.inv, _mouse_slot.index);
gml_Object_obj_inv_panel_equipment_Other_12 (line 57)
gml_Object_obj_inv_mouse_Step_0 (line 9)
Now this is relating to the script: ev_notify
from line:
script_execute(_script, _inv, _event, _updated_slots);
It says
_event
is supposed to be a number. In this case, _event
is calling EVENTS.inv_updated
which is an Enum.The Enum being:
GML:
enum EVENTS {
inv_updated,
inv_destroyed,
inv_resized
}