generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: pcall() ?

Previous Thread :: Next Thread 
DonExecutive is not online. DonExecutive
Joined: 21 Jun 2016
Total Posts: 19
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 is not online. 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
DonExecutive is not online. DonExecutive
Joined: 21 Jun 2016
Total Posts: 19
02 Jul 2016 03:43 PM
502 Bad Gateway


#lua
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jul 2016 03:43 PM
local success, message = pcall(toPrint, "Hello")
Report Abuse
DonExecutive is not online. DonExecutive
Joined: 21 Jun 2016
Total Posts: 19
02 Jul 2016 03:44 PM
Read that wiki page already, doesnt contain the answer i need.


#lua
Report Abuse
Meowth552 is not online. 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
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
02 Jul 2016 03:45 PM
pcall(function()
print("Hello there")
end)


-=[ RAP: 337,857 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
ScriptingRevolution is not online. ScriptingRevolution
Joined: 19 Sep 2015
Total Posts: 528
02 Jul 2016 03:46 PM
pcall(function()

end)


Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jul 2016 04:11 PM
None of you asnwered his question, please re-read my response @OP
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image