amirgrinof002 Posted May 13 Share Posted May 13 can somebody help me fix this issue its says the issue is in the 1256 line but i cant solve that [FACTION]\btc_dashboard\exServer.lua:1256: Bad argument @ 'dbExec' [Expected db-connection at argument 1, got nil] addEvent("savePayTime",true) addEventHandler("savePayTime",getRootElement(),function(player) dbExec(connection,"UPDATE characters SET fizuTime = ? WHERE id = ?",getElementData(player,"fizuTime"),getElementData(player,"acc:id")) end) Link to comment
Mkl Posted May 13 Share Posted May 13 Hello, you are not connected to the database. Find in the code the dbConnect function and set your credentials. https://wiki.multitheftauto.com/wiki/DbConnect Link to comment
amirgrinof002 Posted May 14 Author Share Posted May 14 i dont have this type of code in my exServer.lua file i must add it or i must to find it in another recource 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