Posted 09 July 2018 - 10:37 PM
so i was makeing a "safe script runner" basicly a save way to run my function so right easy right but i came in to an problem so we all know:
{…} this will give us a table of "argument" witch we can use. want to use pcall to catch the error the problem is that when i try to use … it will tell me that i cannot do that becuse of being out side a vararg function so? what do i have to do?
(forinstace i want this to work:
pcall(function() print(…) end, "hallo word")
target output:
halloworld
what we will get:
error: cannot use '…' outside a vararg function
what can we do to fix this?)
{…} this will give us a table of "argument" witch we can use. want to use pcall to catch the error the problem is that when i try to use … it will tell me that i cannot do that becuse of being out side a vararg function so? what do i have to do?
(forinstace i want this to work:
pcall(function() print(…) end, "hallo word")
target output:
halloworld
what we will get:
error: cannot use '…' outside a vararg function
what can we do to fix this?)