Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subscript out of Range
#7
GIAKEN Wrote:Well you still need to make sure you're checking if MapNpc().Num > 0...also make sure that the NPC editor is sending the size value right and that it's being sent to the client and that the server is saving and loading it correctly.

Saving and loading works fine my code is now this , wich checks also if its bigger then 0:

Code:
' Blit out the npcs
        For i = 1 To MAX_MAP_NPCS
            If MapNpc(i).Num > 0 Then
            nnum = Npc(MapNpc(i).Num).Size
            Call BltNpc(i, nnum)
            End If
        Next i

Well i could make a
Senddata("requestsize & Sep_CHAR & Npc(MapNpc(i).Num)& SEP_Char & End_CHar ") and then let the server reply with the size, will try that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)