Quote:
Originally Posted by sssssssssss
I know it's server-side I didn't realize I said it was client-side you knob...
Saving this.vars in a dbnpc vs storing it in sql. You don't have to be a **** I was just making sure sql was ok to use on mobile and Facebook servers and if there was any real difference in efficiency between the 2. Damn son...
|
Some things ive decided to use sql for instead of a dbnpc are things like items
dbnpc method thread
PHP Code:
function onCreated()
{
/*
Format:
this.item_id = {Name, Internalname, Image, ActionWeapon, Canbedropped};
*/
this.item_100 = {"Block", "block", "block.png", "-No Item", 1};
}
Instead of storing items like that, you can create a table with sqlite instead.
There are instances here you will need scripted interactions where dbnpcs are a better option.
Aside from that, my experiences are limited so I can't shed much more light on the subject. Sorry.