Anubhav Posted September 6, 2014 Posted September 6, 2014 I've problems using one export. Meta: server.lua function isPlayerSupporter(s) for v, k in ipairs(supportAcc) do -- supportAcc defined as a table. Nothing wrong here. if getAccountName(getPlayerAccount(s)) == k then return true end end end Call always gets failed. I am using this: if exports.SGNmisc:isPlayerSupporter(s) -- s is defined and this is a part of a script. This is where call gets failed.
Saml1er Posted September 6, 2014 Posted September 6, 2014 Call fails because there is an error in the exported function. Show us the part where you defined those tables.
Anubhav Posted September 6, 2014 Author Posted September 6, 2014 Solved request a lock. EDIT: That was the problem Sam1ler, just I looped with a table tat din't exist LOL.
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