Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help please with this very easy code
#1
Ok so i just joined today and i have taken a crack at jumping head first into mirage. My first edit I wanted to try would be to add a new morale called "Cola" just for fun. So here is the code i have
Code:
Public Sub UpdateDrawMapName()
    DrawMapNameX = (MAX_MAPX + 1) * PIC_X \ 2 - ((Len(Trim$(Map.Name)) \ 2) * 8)
    DrawMapNameY = 1
    
    Select Case Map.Moral
        Case MAP_MORAL_NONE
            DrawMapNameColor = QBColor(BrightRed)
            
        Case MAP_MORAL_SAFE
            DrawMapNameColor = QBColor(White)
        
        Case MAP_MORAL_COLA
            DrawMapNameColor = QBColor(Blue)

        
        Case Else
            DrawMapNameColor = QBColor(White)
    End Select
    
End Sub

On the top line
Code:
Public Sub UpdateDrawMapName()
it says that it is not defined when i run the client.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)