Yasuoo Posted February 20, 2019 Share Posted February 20, 2019 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 Link to comment
Crossy101 Posted February 20, 2019 Share Posted February 20, 2019 In the file CSGaccounts, within the weapons.lua the global variable "DB" was a nil value meaning it doesn't have any value associated to it. Link to comment
VenomOG Posted February 20, 2019 Share Posted February 20, 2019 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)) 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