Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Itchigo

Need Coding Help- (Match)

Recommended Posts

As I'm teaching myself arrays, I'm sure I have something wrong here. I get no errors, and I have the match set to 00 so I match every time, and can check it.

 

  Dim Playerscore,j
     Playerscore=array(Scoreplayer1,Scoreplayer2,Scoreplayer3,Scoreplayer4)

Sub Match()		
     Playsound "Matchend"
	 MatchNumber = 00'Int(Rnd(1)*10)*10
	 EMReel4.SetValue(MatchNumber)
     'Controller.B2SSetMatch 34,1
     'Controller.B2SSetScore 7,MatchNumber
 If  MatchNumber = 0 Then
	 EMReel4.SetValue(MatchNumber)
     'Controller.B2SSetScore 7,MatchNumber
 Else
	 EMReel4.SetValue(MatchNumber)
     'Controller.B2SSetScore 7,MatchNumber
 End If
 For j = 1 to Players
 If  MatchNumber = (playerScore(j) Mod 100) Then 
     Replay
 End If
 Next
 End Sub

 

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...