Not set before reading it

Posted by Jhrino

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object GMS:

Variable multiplayer_slender2.player_id(100006, -2147483648) not set before reading it.
at gml_Script_gms_step (line 657) - room_id = gms_other_get_real(player_id, "room");
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_gms_step (line 657)
called from - gml_Object_GMS_StepNormalEvent_1 (line 1) - gms_step()



I keep getting this, any solutions?

Replies (2)

Last message on 4 Sep 2017

Size43 (Administrator) on 4 Sep 2017, 11:37:29
Did you set multiplayer_slender2 as your other player object?

If so, you should not place it in a room anywhere, it'll be created by the extension automatically.
Dublann on 29 Aug 2017, 15:35:16
As far as I know, player_id has to be got only from the other_player object.