Hey guys,
I have an error and I dont know why… maybe you can explain what im doing wrong
Its a scope issue, the code is like so :
[lua]
local checkPossibleMatches – forward declaration
local flag=false
flag=checkPossibleMatches(“create”)
function checkPossibleMatches(theState)
– do something
end
[/lua]
I get the following error:
gameplay.lua:604: attempt to call upvalue ‘checkPossibleMatches’ (a nil value)
Since I declared the function at the beginning, why is this error showing up?
Cheers
Roy.