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

Help


totalwar235
 Share

Recommended Posts

ok i just wrote the script but it will not work can someone show me what i screwed up?

Case 3
        Random = Rand(0,2)
        Select Random Case
            Case 0
            CallPlayerWarp(index, 31, 9, 0)

            Case 1
            CallPlayerWarp(index, 31, 30, 15)

            Case 2
            CallPlayerWarp(index, 31, 9, 30)
        End Select
        End if
        Exit Sub
Link to comment
Share on other sites

ok i fixed it now but i want to make sure it will work before i try agian

Case 3
Random = Rand(0,2)
Select Case Random
Case 0
CallPlayerWarp(index, 31, 9, 0)

Case 1
CallPlayerWarp(index, 31, 30, 15)

Case 2
CallPlayerWarp(index, 31, 9, 30)
End Select
Exit Sub
Link to comment
Share on other sites

change it to this

```
Case 3
        Random = Rand(2,0)
        Select Case Random
            Case 0
            Call PlayerWarp(index, 31, 9, 0)

            Case 1
            Call PlayerWarp(index, 31, 30, 15)

            Case 2
            Call PlayerWarp(index, 31, 9, 30)
        End Select
        Exit Sub
```1\. Call is used to call a function so there should be a space.
2\. Its rand(highest,lowest) not rand (lowest,highest(
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...