TheMta Posted December 25, 2019 Share Posted December 25, 2019 (edited) error at line : 10 : Quote outputChatBox("#00ff00Hack Point Haye Shoma #ff0000"..points.."/40#00ff00 Mibashad!", thePlayer, 255, 255, 255, true) error : attempt to concatenate local 'points' (a nil value) please help me to fix this error Quote local accSys = exports["Accounts"] local miscSys = exports["Misc"] addCommandHandler("myhackpoints", function ( thePlayer, command ) local faction = getElementData(accSys:getPlayerAcc(thePlayer), "pMember") if tonumber(faction) == 11 then local points = getElementData(accSys:getPlayerAcc(thePlayer), "pCanistra") outputChatBox("#00ff00Hack Point Haye Shoma #ff0000"..points.."/40#00ff00 Mibashad!", thePlayer, 255, 255, 255, true) else outputChatBox("#ff0000Baraye Inkar Bayad Hacker Bashid!", thePlayer, 255, 255, 255, true) end end) Edited December 25, 2019 by TheMta Link to comment
Bilal135 Posted December 25, 2019 Share Posted December 25, 2019 The problem could be with getPlayerAcc function in "Accounts" resource, or where you set the element data 'pCanistra'. Show us more. 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