Jump to content




Help With Variables In A Function


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

#1 dylanrhodes0

  • Members
  • 15 posts

Posted 25 July 2013 - 04:14 AM

Hello, a while ago I made a toggle program. (See below) and my hope is, that instead of having a function for each item, have one function and pass the params it needs.
Function for each one(works): http://pastebin.com/F6fPS3en
One function(test): http://pastebin.com/n2heYPau

Now in the testing one, it toggles the output, but does not change the status variable(hls, sls, ds, etc)

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 July 2013 - 11:43 AM

Split into new topic.

#3 dylanrhodes0

  • Members
  • 15 posts

Posted 26 July 2013 - 03:30 PM

Used a different method, sorry. http://pastebin.com/j5Z4iMqi





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users