Go ao tutor
Procure
CÓDIGO:
- Código:
Public Sub DrawPlayerName(ByVal Index As Long)
Abaixo depois do end sub coloque
CÓDIGO:
- Código:
Public Sub DrawPlayerlevel(ByVal Index As Long)
Dim TextA As Long
Dim TextB As Long
Dim TextX As Long
Dim TextY As Long
Dim Level As String
Dim color As Long
' If debug mode, handle error then exit out
If Options.Debug = 1 Then On Error GoTo errorhandler
Level = Trim$("Level " & GetPlayerLevel(Index))
' calc pos
TextA = ConvertMapX(GetPlayerX(Index) * PIC_X) + Player(Index).XOffset + (PIC_X \ 2) - getWidth(TexthDC, (Trim$("Level " & GetPlayerLevel(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 level
Call DrawText(TexthDC, TextA, TextB, "Level " & GetPlayerLevel(Index), &HFFFF00) ' mude a cor de exibiçao aki &HFFFF00 E.e
' Error handler
Exit Sub
errorhandler:
HandleError "DrawPlayerlevel", "modText", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
Procure:
CÓDIGO:
- Código:
Call DrawPlayerName(i)
Abaixo:
CÓDIGO:
- Código:
Call DrawPlayerLevel(i)
E pronto bem facil