24-12-2007, 10:06 PM
How do I send a a message box to a player?
Like:
Heres my sprite set code, looks wrong.
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.
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.