Estava sem fazer nada resolve fazer isso
Vamos ao Tutorial
Procure:
depois do end sub coloque
Procure:
Abaixo :
e Pronto bem facil
If Creditos > = EdUaRdOo Then
Vamos ao Tutorial
Procure:
- Código:
Public Sub DrawPlayerName(ByVal Index As Long)
depois do end sub coloque
- Código:
Public Sub DrawPlayerClass(ByVal Index As Long)
Dim TextA As Long
Dim TextB As Long
Dim TextX As Long
Dim TextY As Long
Dim Class As String
Dim color As Long
' If debug mode, handle error then exit out
If Options.Debug = 1 Then On Error GoTo errorhandler
Class = Trim$("Classe: " & GetPlayerClass(Index))
' calc pos
TextA = ConvertMapX(GetPlayerX(Index) * PIC_X) + Player(Index).XOffset + (PIC_X \ 2) - getWidth(TexthDC, (Trim$("Classe: " & GetPlayerClass(Index))))
If GetPlayerSprite(Index) < 1 Or GetPlayerSprite(Index) > NumCharacters Then
TextB = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).YOffset - 5
Else
' Determine location for text
TextB = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).YOffset - (DDSD_Character(GetPlayerSprite(Index)).lHeight / 4) + 5
End If
'Draw Classe
Call DrawText(TexthDC, TextA, TextB, "Classe: " & GetPlayerClass(Index), &HFFFF00) ' mude a cor de exibiçao aki &HFFFF00 E.e
' Error handler
Exit Sub
errorhandler:
HandleError "DrawPlayerClass", "modText", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
Procure:
- Código:
Call DrawPlayerName(i)
Abaixo :
- Código:
Call DrawPlayerClass(i)
e Pronto bem facil
If Creditos > = EdUaRdOo Then