Akselj Posted December 12, 2008 Author Share Posted December 12, 2008 Ok, guys, I just have a quick question. I'm not completley sure, just asking to be sure, if I want a sub with serveral cases, it will be like this, right?```Sub Weeee(Index, Script) Select case script Case 1 Call PlayerMsg(Index, "Weeee", WHITE) Case 2 Call PlayerMsg(Index, "Weeee Weeee", WHITE)End Sub```And to call it:```Call Weeee(Index, 1)```For case 1 and```Call Weeee(Index, 2)```For case 2Well, is this right?Correct me if not.Thanks,AkselJ Link to comment Share on other sites More sharing options...
Tyr Posted December 12, 2008 Share Posted December 12, 2008 looks all right but don't forget to put this at the end of the weeee sub (before end sub)End Selectshould work, test it out ^^ Link to comment Share on other sites More sharing options...
Akselj Posted December 12, 2008 Author Share Posted December 12, 2008 Nah, will test later… Don't have my computer, it was just fixed, so I am on another computer.... But thanks. 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