Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite Displayed on Char creation
#1
I followed the tutorial posted the server when find but when I got to client I had this error

Compile Error Variable not define and it highlighted picsprites.hdc

Private Sub Timer_Timer()
On Error Resume Next
If optMale.Value = True Then
Call BitBlt(picPic.hdc, 0, 0, PIC_X, PIC_Y, picSprites.hdc, 0, Int(Class(cmbClass.ListIndex).Sprite) * PIC_Y, SRCCOPY)
Else
Call BitBlt(picPic.hdc, 0, 0, PIC_X, PIC_Y, picSprites.hdc, 0, Int(Class(cmbClass.ListIndex).Sprite) * PIC_Y, SRCCOPY)
End If
End Sub
Reply
#2
If picSprites isn't a picture box on your frmChars, then you need to state which form it is. ex: frmNPCeditor.picSprites.hdc
Reply
#3
It was tho. So I need to just add where the pic box is ok. Do i need to do that for both
Reply
#4
Yes, but that doesn't mean it will work. But you could try.
Reply
#5
now it highlight .picsprites and says compile error method or data member not found
Reply
#6
Did you actually make the picSprites, picturebox? or did you by chance miss some letters when naming it? double check.
Reply
#7
I fixed it so dont worry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)