View Single Post
  #7  
Old 01-23-2014, 01:45 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally Posted by sssssssssss View Post
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.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote