|
| 02 Jul 2016 03:40 PM |
I'm trying to use pcall so i produce no errors in the output, However apparently you cant use it with the functions to pcall with parameters in. EG:
function toPrint(text) print(text) end local success, message = pcall(toPrint("Hello")) if not success then print(message) end
#lua |
|
|
| Report Abuse |
|
|
Meowth552
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 2181 |
|
|
| 02 Jul 2016 03:41 PM |
| wiki.roblox.com/index.php?title=Function_dump/Basic_functions#pcall |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2016 03:43 PM |
| local success, message = pcall(toPrint, "Hello") |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 03:44 PM |
Read that wiki page already, doesnt contain the answer i need.
#lua |
|
|
| Report Abuse |
|
|
Meowth552
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 2181 |
|
|
| 02 Jul 2016 03:44 PM |
"hurr how du i turn off https??? XDDD"
Just remove s from https in the beginning of your address bar after clicking the link. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 03:45 PM |
pcall(function() print("Hello there") end)
-=[ RAP: 337,857 || DurstAuric; the narb of ROBLOX ]=- |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2016 04:11 PM |
| None of you asnwered his question, please re-read my response @OP |
|
|
| Report Abuse |
|
|