1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GML Check if outside of buffer

Discussion in 'Programming' started by emicarra, Feb 13, 2020 at 8:58 PM.

  1. emicarra

    emicarra Member

    Joined:
    Jul 2, 2017
    Posts:
    60
    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
     

Share This Page