Quote:
Originally Posted by Stefan
The requestsql2() command lets you specify which configured database you are using. That way you can easily switch between sqlite or mysql. The database configuration is right now not accessible by server staff though.
requestsql() for sqlite databases is right now synchronous, but it can be possible later to also do it asynchronous like for mysql. In the example I have already shown how to wait for the command to complete:
PHP Code:
if (!temp.req.completed) waitfor(temp.req,"onReceiveData",60);
It would be best to write your own wrapper class to do database commands (like getsql() and setsql()).
Update: the new npcserver is now installed on the private/hosted playerworld computers, restart it to try.
|
Did you enable SQL for Valikorlia like I asked? And I would like it if you could take a look at what I suggested in my previous post.
I'm also not going to be using SQL unless I can back the whole database up at least twice a day.