Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Just a quick question


Akselj
 Share

Recommended Posts

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 2

Well, is this right?
Correct me if not.

Thanks,
AkselJ
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...