totalwar235 Posted March 7, 2009 Author Share Posted March 7, 2009 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 More sharing options...
Fruitpunch Posted March 7, 2009 Share Posted March 7, 2009 Yeah…Read up on how to use if statementsAlso for future reference it would be Select Case Random, but you only need that when making custom subs Link to comment Share on other sites More sharing options...
totalwar235 Posted March 7, 2009 Author Share Posted March 7, 2009 k thanks Link to comment Share on other sites More sharing options...
totalwar235 Posted March 7, 2009 Author Share Posted March 7, 2009 ok i fixed it now but i want to make sure it will work before i try agianCase 3Random = Rand(0,2)Select Case RandomCase 0CallPlayerWarp(index, 31, 9, 0)Case 1CallPlayerWarp(index, 31, 30, 15)Case 2CallPlayerWarp(index, 31, 9, 30)End SelectExit Sub Link to comment Share on other sites More sharing options...
zidsal Posted March 7, 2009 Share Posted March 7, 2009 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 More sharing options...
totalwar235 Posted March 7, 2009 Author Share Posted March 7, 2009 ok thanks alot 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