berry172 Posted August 15, 2012 Share 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 Link to comment
Guest Guest4401 Posted August 15, 2012 Share 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. Link to comment
berry172 Posted August 15, 2012 Author Share Posted August 15, 2012 Account system: how to fix? Admin system: Second line to remove? Link to comment
Guest Guest4401 Posted August 15, 2012 Share 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 Link to comment
berry172 Posted August 15, 2012 Author Share Posted August 15, 2012 Thanks <3 Account system? Link to comment
Guest Guest4401 Posted August 15, 2012 Share 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. 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