Wilma456, on 25 June 2016 - 12:44 PM, said:
KingofGamesYami, on 25 June 2016 - 12:13 PM, said:
--Exampele
--Best way to call the func test
function test()
print("test")
end
os.loadAPI("/lib/gui")
gui.createScroll("Hello")
gui.addScrollFunc(test,"hello",1) --#this passes the actual function, rather than a string, as an argument.
gui.createScroll("world")
gui.addScrollFunc("print","world",1)
gui.drawScroll()
How are you using the argument (function)?



