Jump to content

safe problem


Recommended Posts

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]

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...