Stropon777 Posted October 27, 2017 Share Posted October 27, 2017 function getGangSlots (gangname) local account = getAccount(getGangLeader(gangname)) if account then return (getAccountData(account,"gangslots") or 0) else return 20 end end Quote WARNING: groupsystem.lua:2: Bad argument @ 'getAccount' [Expected string at argument 1, got boolean] Link to comment
WorthlessCynomys Posted October 27, 2017 Share Posted October 27, 2017 Gangname is an empty varianble. You have to give that as an argument when you call this function. Look at the calls for this function. 1 Link to comment
Stropon777 Posted October 27, 2017 Author Share Posted October 27, 2017 34 minutes ago, Randomly said: Gangname is an empty varianble. You have to give that as an argument when you call this function. Look at the calls for this function. I don't see bad in LUA, sorry( Link to comment
WorthlessCynomys Posted October 27, 2017 Share Posted October 27, 2017 Find the part of the script thst calls this exact function, and check it and so on. Follow the way of the command/data and find the bug Link to comment
Stropon777 Posted October 28, 2017 Author Share Posted October 28, 2017 On 27.10.2017 at 12:40, Randomly said: Найти ту часть сценария, то называет это точные функции, и проверить его и так далее. Путь команд/данных и найти ошибку Please give complete code, I can't understand it, thank you! 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