Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ryan's Questions.
#10
How do I send a a message box to a player?
Like:
Code:
Call MsgBox(txtWarn.Text, vbOkOnly, GAME_Name)(Trim$(txtName.text))

Heres my sprite set code, looks wrong.
Code:
Private Sub cmdSprite_Click(N As Integer)
Select Case GetPlayerAccess(MyIndex)

N = (Trim$(txtNumber.Text))

Case Is >= 3
If LenB(txtPlayer.Text) = 0 Then
    Call MsgBox("You must enter the name of the player you wish to give a sprite change.", vbOKOnly, GAME_NAME)
End If

If LenB(txtPlayer.Text) > 0 Then
    If LenB(txtNumber.Text) = 0 Then
        Call MsgBox("You must enter the sprite number you wish to change the player to.", vbOKOnly, GAME_NAME)
    End If
End If

    If LenB(txtPlayer.Text) > 0 Then
        If LenB(txtNumber.Text) > 0 Then
            If GetPlayerAccess(MyIndex) >= 2 Then
        Call SendSetSprite(Trim$(N(txtPlayer.Text)))
        End If
    End If
End If

Case Is < 3
    Exit Sub
    

End Select
End Sub

I realize this is a lot of questions, but it should die down soon once I get used to the common commands. Please bare with me and thank you for the help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)