I was testing to see how I can set parameters to a script from an event, bot I got a No Method Error, and it kinda confuses me...
I put this in the script editor:
And put this in the event:
and when i tested it, I got a no method error for the method "add", when it's right there in red.
I put this in the script editor:
Code:
module Container
data = []
[COLOR=red][COLOR=blue]def[/COLOR] add(something)
[/COLOR] data.push(something)
end
end
And put this in the event:
Code:
Container::add("Mama")
print Container::data
and when i tested it, I got a no method error for the method "add", when it's right there in red.