|
| 12 Aug 2012 05:50 PM |
Let's say I have a script like this:
function hello(derp) print(derp) end
How would I store it into a table without running it |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 05:51 PM |
| Theres multiple ways. Please add a bit more information on your topic |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 05:54 PM |
I tried this:
table = { ["herp"] = { function help() end } }
but this doesn't work
I just want to store a function into a table |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 05:55 PM |
tab = { ["Derp"] = function(herp) print(herp) end }
tab.Derp('hullo')
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
| |
|