Saving server data into mysql db.
#1

Hello. How can i make my server to save data into database, whats the code. Its reading them fine, but if i change a value in server, for example delivering some materials to a factory, which would add the according materials to the factory and increase the value. The value gets updated in game, but if i restart the server, the value is back to what it was when the server was started.
Reply
#2

Use queries like this:

pawn Код:
UPDATE materials SET price='%d'
I didn't do the full query because it depends on what version of mysql you have, but this query is especially for non-threaded versions.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)