N
nick13579
Guest
Whenever my program tries to run this code:
var buff = async_load[? "buffer"];
buffer_seek(buff, buffer_seek_start, 0);
receive = buffer_read(buff, buffer_s16);
I get this error:
"Attempting to read from outside the buffer, returning 0
at gml_Object_obj_control_NetworkingEvent_1 (line 6) - receive = buffer_read(buff, buffer_s16);"
I thought this was weird because I said to put it at the start with buffer_seek(), but maybe I'm doing something wrong.
Help is much appreciated
var buff = async_load[? "buffer"];
buffer_seek(buff, buffer_seek_start, 0);
receive = buffer_read(buff, buffer_s16);
I get this error:
"Attempting to read from outside the buffer, returning 0
at gml_Object_obj_control_NetworkingEvent_1 (line 6) - receive = buffer_read(buff, buffer_s16);"
I thought this was weird because I said to put it at the start with buffer_seek(), but maybe I'm doing something wrong.
Help is much appreciated