Hi again, got a question. My program uses a autoupdater using pastebin. is there any way to make the pastebin program not print all those lines? I could imagine saving print and write to each a variable, then making 2 empty functions called print and write. after I've autoupdated then, I would just set them back. But there got to be a easier way, or is that my best route?
Overwriting printing in pastebin?
Started by Doyle3694, Dec 19 2012 07:44 AM
8 replies to this topic
#1
Posted 19 December 2012 - 07:44 AM
#2
Posted 19 December 2012 - 07:50 AM
do
local print=function() end
shell.run("pastebin","stuff")
end
local print=function() end
shell.run("pastebin","stuff")
end
#3
Posted 19 December 2012 - 08:06 AM
OK, please motivate doing it like that? How would that make anything better because then i can't print afterwards...
#4
Posted 19 December 2012 - 08:08 AM
*facepalm*
thats why i localized it inside a do block >_>
thats why i localized it inside a do block >_>
#5
Posted 19 December 2012 - 08:09 AM
PixelToast, on 19 December 2012 - 07:50 AM, said:
do
local print=function() end
shell.run("pastebin","stuff")
end
local print=function() end
shell.run("pastebin","stuff")
end
local type = print local print = function() end --code local print = typeThen you can restore print() functionality at the end?
#6
Posted 19 December 2012 - 08:09 AM
oh... You didn't put it inside code tags so thought you ment the word do in plain english...
Well.. thanks for the help!
Well.. thanks for the help!
#7
#8
Posted 19 December 2012 - 08:20 AM
Lyqyd, on 19 December 2012 - 08:16 AM, said:
I didn't know type() was a function, actually. So yeah. But type could be changed for anything. And also, since his code wasn't in [code] tags, it was kinda confusing because 'do' has more than one meaning when not using the tags
#9
Posted 19 December 2012 - 09:22 AM
--snip--
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users











