17.05.2011, 16:41
Hello.
I'm currently scripting a roleplay gamemode with SQL.
On my website you can for example buy or sell vehicles.
But the problem is that you should be out of game when you login at the website.
Because if I take $1000 away from a user on the website, and he is at that moment ingame, then when he logs off the money will be overwriten.
So I'm asking is there something to send a message to the server that his money has been go up or down?
And yea I can use a timer that checks every second if the user data has been changed, but that will fuckup my server traffic.
So maybe somebody know another way?
Greets KaleOtter
I'm currently scripting a roleplay gamemode with SQL.
On my website you can for example buy or sell vehicles.
But the problem is that you should be out of game when you login at the website.
Because if I take $1000 away from a user on the website, and he is at that moment ingame, then when he logs off the money will be overwriten.
So I'm asking is there something to send a message to the server that his money has been go up or down?
And yea I can use a timer that checks every second if the user data has been changed, but that will fuckup my server traffic.
So maybe somebody know another way?
Greets KaleOtter