So I have funct. A and funct. B like this:
local function A (event)
B()
end
local function B (event)
–do stuff
end
I want to call function B from function A, but due to the fact that B come after A I keep getting the error "Runtime error
/Users/Stiven/Desktop/Chow-Down/game.lua:457: attempt to call global ‘B’ (a nil value)
stack traceback:
[C]: in function ‘B’
/Users/Stiven/Desktop/Chow-Down/game.lua:457: in function
?: in function <?:215>
"
Is there a way to surpass this error?
And no, I can’t switch the order around.
[import]uid: 130035 topic_id: 24004 reply_id: 324004[/import]
