03-07-2006, 09:42 PM
The only problem (that could possibly exist), is where i had written...
There is 1 line of code underneath that, i dont remember exactly what is is... but it needs to go after that...
So it should be like this... (and this should fix your problem.. if you're getting one)
If you check that out, that should be the only reason your code may not work....
If you put this chunk of code BEFORE the line, that comes after the " ' Lock the backbuffer so we can draw text and names " part, you won't see any text. So make sure, you have the Comment, the original line directly after the comment and then that part of the code. I didn't write that part too well when i made the original tutorial.
Quote:' Lock the backbuffer so we can draw text and names
There is 1 line of code underneath that, i dont remember exactly what is is... but it needs to go after that...
So it should be like this... (and this should fix your problem.. if you're getting one)
Code:
' Lock the backbuffer so we can draw text and names
'*Should Be a Line here already*
If NPCWho > 0 Then
If MapNpc(NPCWho).Num > 0 Then
If GetTickCount < NPCDmgTime + 2000 Then
Call DrawText(TexthDC, (Player(MyIndex).x) * PIC_X + sx + (Int(Len(NPCDmgDamage)) / 2) * 3 + Player(MyIndex).XOffset - NewXOffset, (Player(MyIndex).y) * PIC_Y + sx - 30 + Player(MyIndex).YOffset - NewYOffset - ii, NPCDmgDamage, QBColor(BrightRed))
End If
ii = ii + 1
End If
End If
If NPCWho > 0 Then
If MapNpc(NPCWho).Num > 0 Then
If GetTickCount < DmgTime + 2000 Then
Call DrawText(TexthDC, (MapNpc(NPCWho).x - NewPlayerX) * PIC_X + sx + (Int(Len(DmgDamage)) / 2) * 3 + MapNpc(NPCWho).XOffset - NewXOffset, (MapNpc(NPCWho).y - NewPlayerY) * PIC_Y + sx - 57 + MapNpc(NPCWho).YOffset - NewYOffset - iii, DmgDamage, QBColor(White))
End If
iii = iii + 1
End If
End If
If you check that out, that should be the only reason your code may not work....
If you put this chunk of code BEFORE the line, that comes after the " ' Lock the backbuffer so we can draw text and names " part, you won't see any text. So make sure, you have the Comment, the original line directly after the comment and then that part of the code. I didn't write that part too well when i made the original tutorial.