Jump to content

need little bit help please


Yasuoo

Recommended Posts

Posted
Spoiler

    db:exec("INSERT INTO weapon_holders (`account`, `datum`, `weapons`) VALUES (?, ?, ?)", plr.account.name, getRealTime().timestamp, getPlayerWeaponString(plr))
 

[19-02-19 21:01:01] ERROR: CSGaccounts/weapons.lua:60: attempt to index global 'db' (a nil value)

_____________________________________________________________________________________________________________________________________________________________________________________________________

also i need a developer /contact me please ❤️

Posted

Well define DB firstly.
or use a diffrent source

dbExec
conn = dbConnect( "sqlite", "accounts.db" )

and use
 

dbExec(conn,"INSERT INTO weapon_holders (`account`, `datum`, `weapons`) VALUES (?, ?, ?)", plr.account.name, getRealTime().timestamp, getPlayerWeaponString(plr))

 

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...