• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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