GML Check if outside of buffer

emicarra

Member
Hello, is there a way to check if data exists in the position of a buffer you're trying to read from?

My code for sending the data has no errors, because my server runs fine for hours, but sometimes it randomly sohws an error "Attempting to read from outside the buffer (line -1)".

I think it can be because of players using cheats to change stats, for example, they change their in game money to 999999999, and the data type i use to send that data is for example buffer_u8.
Or maybe its a Game Maker bug because it makes no sense, but i guess if i report this as a bug it will be ignored because it would be very hard to replicate, it happens very randomly, sometimes the server is up for many hours with more than 100 active players

Thanks
 
Top