I am working on some RP content and I am thinking about the way I network and save the data and I see some exploits, so I am asking for help.
I thinked about two ways, the first one that I abandonned was to save the data on the MySQL database and then when the query is completed it network the new value (SetNW).
BUT: if the query takes too many time like seconds, it can be exploited since my Get function will work thanks to GetNW.
So I was thinking of an other way: it network the value before saving it, so it can’t be exploited.
But the thing is, for exemple if the MySQL server is down, it would be a bit buggy since the query would not run but it would network the value.
So i’m not really sure of both methods. If someone has better idea, feel free to tell me. Thank you.