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]
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