Since i am working on the "Client for OpenPeripheral's Glasses" i am calling methods with the
.callRemote(<peripheral>, <function>)
function.
It is also possible to call arguments with
.callRemote(<peripheral>, <function>, unpack(<argument_table>))
The problem is that the possibility exists that the player didnt put the correct amount or type of arguments in.
I now wanted the program to detect this and tried it with pcall(), but that didnt worked for me at all.
Is there a solution for such an error handling? Maybe i did something wrong with pcall?
Thanks
unobtanium
Edited by UNOBTANIUM, 01 March 2014 - 04:36 PM.












