PatrickChucky Posted December 14, 2011 Share Posted December 14, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now