Kiti Posted October 12, 2009 Share Posted October 12, 2009 Hello everyone! Here's a piece of non-working code: for $i = 1 to 3 eval("f" & $i) next func f1() msgbox(0,"",1) EndFunc func f2() msgbox(0,"",2) EndFunc func f3() msgbox(0,"",3) EndFunc I think you've already understood what I want to do. I have three functions, called f1, f2 and f3, and I want to be able to call them by something similar to the eval function, so the script will count up to 3. How do I do that? Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
monoceres Posted October 12, 2009 Share Posted October 12, 2009 Call() function. Look it up in the help file. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Kiti Posted October 12, 2009 Author Share Posted October 12, 2009 Call() function. Look it up in the help file.Yaay, brilliant! Thank you very much! Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now