Jump to content

[ Help ] Little question


PatrickChucky

Recommended Posts

Hi everyone,

I've been trying to discover this but i couldnt.

Can someone tell me how would this show up the the database?

"'" .. exports.sql:escape_string( toJSON( weapons ):gsub( " ", "" ) ) .. "'" 

thats inserting in the db, this is getting from the db

local weapons = fromJSON( char.weapons ) 
                        if weapons then 
                            for weapon, ammo in pairs( weapons ) do 
                                giveWeapon( source, weapon, ammo ) 
                            end 
                        end 

Can someone explain me this please?

Thanks in advance.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...