rpgforlife Posted July 26, 2014 Posted July 26, 2014 I have a problem with my "bankrob" safe elseif theDoor == "Safe1" then setWantedLevel(source, safe1) outputChatBox("*911* Safe 1 is open of the bankrob in Whetstone!",0,255,0) destroyElement(Safe1marker) for i,p in ipairs(getElementsWithinColShape("player")) do local account = getPlayerAccount(p) if getAccountData(account, "gang") then r,g,b = getPlayerNametagColor(p) givePlayerMoney(p, math.random(50000,70000)) end end but it doesn't take the gang to give the money (function name is) : function(theDoor) errors: WARNING: saverob\saverob_server.lua:181: Bad argument @ 'getAccountData' [expected account at argument 1, got boolean] WARNING: saverob\saverob_server.lua:13: Bad agrument @ 'unbindKey' [Expected string at argument 3, got function]
Moderators IIYAMA Posted July 26, 2014 Moderators Posted July 26, 2014 Define the colshape. Line 6. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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