amirgrinof002 Posted May 13, 2024 Posted May 13, 2024 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)
Mkl Posted May 13, 2024 Posted May 13, 2024 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
amirgrinof002 Posted May 14, 2024 Author Posted May 14, 2024 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
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