Jump to content




howto shorten rs.bundledoutput(string, #) ?


  • You cannot reply to this topic
3 replies to this topic

#1 Andale

  • Members
  • 46 posts
  • LocationNWIndiana

Posted 31 January 2013 - 06:55 AM

I thought this would work, but I've not been able to figure this out.

local rbo = function(text)
rs.setBundledOutput(text, x)
end

It seems really simple but I'm not sure why it won't take the second variable from rbo=("left", 4)
Returns 'Expected string, number'

I'm sure its super simple but I've not found anyone else's program that didn't just have it typed out. I've gotta shorten it at least to reduce time/size. I've got 5 bundled outputs going.

#2 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 31 January 2013 - 06:59 AM

try
rs.setBundledOutput(text, tonumber(x))


#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 31 January 2013 - 07:12 AM

better:
rbo=rs.setBundledOutput


#4 Andale

  • Members
  • 46 posts
  • LocationNWIndiana

Posted 31 January 2013 - 07:39 AM

View PostPixelToast, on 31 January 2013 - 07:12 AM, said:

better:
rbo=rs.setBundledOutput

Oh my god. I had no idea you could just use variables in place of commands. Well, I'll be buggered. Thanks much.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users