![]() |
Printing Output - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: Printing Output (/showthread.php?tid=6882) |
Printing Output - Nyht - 07-14-2011 Is it possible to print Output on a specific part of a script? RE: Printing Output - Dignity - 07-14-2011 What? RE: Printing Output - Ashely - 07-14-2011 (07-14-2011, 05:40 AM)Nyht Wrote: Is it possible to print Output on a specific part of a script? What do you mean? explain RE: Printing Output - Dignity - 07-14-2011 (07-14-2011, 02:19 PM)Ashely Wrote:(07-14-2011, 05:40 AM)Nyht Wrote: Is it possible to print Output on a specific part of a script? Exactly RE: Printing Output - Duck - 07-14-2011 I'm assuming you want to print something at some point in your script I'm pretty sure you'd just write print() Put a string between the brackets i.e. print("Hello") print(PreSpecifiedString)-- Earlier you could write PreSpecifiedString = Player.Name or something print("Hello "..PreSpecifiedString) -- This will add prespecifiedstring to the end of the word Hello, so it might print Hello Duck if I were to join Then again, It may be a little different in Buildism lua RE: Printing Output - Nyht - 07-14-2011 (07-14-2011, 06:52 PM)Duck Wrote: I'm assuming you want to print something at some point in your script I know that. And it is parenthesis, not brackets. ![]() I also know the Output prints the errors, however, the errors do not happen unless there are certain circumstances, e.g. someone leaving a game during teleportation in Multiplayer, thus breaking the script unless there is prevention of it in the script. If I have a "else return end" then it wont print the output. I was wondering if there was something to stop the script from breaking, however, is still able to print the output. |