berry172 Posted August 15, 2012 Posted August 15, 2012 Hello, warning & errors: [2012-08-15 12:22:33] ERROR: account-system\s_account_system.lua:94: attempt to index local 'motdresult' (a nil value) [2012-08-15 12:22:34] SCRIPT ERROR: admin-system\Resources\s_resource_commands.lua:2: 'then' expected near ')' [2012-08-15 12:22:34] WARNING: Loading script failed: admin-system\Resources\s_resource_commands.lua:2: 'then' expected near ')' How to fix? Lines: Account system 94: exports['anticheat-system']:changeProtectedElementDataEx(getRootElement(), "account:motd", motdresult["value" ], false ) Admin system: if (exports.global:isPlayerScripter(thePlayer) or getElementData(thePlayer, "adminlevel") >= 5)) then Fast please :SS
Guest Guest4401 Posted August 15, 2012 Posted August 15, 2012 Account system: motdresult should be a table, but it's nil. Admin system: There's an extra close-bracket in that line. Remove it.
berry172 Posted August 15, 2012 Author Posted August 15, 2012 Account system: how to fix? Admin system: Second line to remove?
Guest Guest4401 Posted August 15, 2012 Posted August 15, 2012 Admin system: Second line to remove? Change if (exports.global:isPlayerScripter(thePlayer) or getElementData(thePlayer, "adminlevel") >= 5)) then to if (exports.global:isPlayerScripter(thePlayer) or getElementData(thePlayer, "adminlevel") >= 5) then
Guest Guest4401 Posted August 15, 2012 Posted August 15, 2012 Account system: motdresult should be a table, but it's nil. If you don't understand the above sentence then show the entire code.
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