12-08-2008, 01:43 AM
ok so can any one tell me why this is crashing my server?
Code:
If Parse(0) = PH_AttackNPC Then
npcname = Parse(1)
Call AddText("recieved backet", vbBlack)
For i = 1 To MAX_NPC
Call AddText("in for loop", vbBlack)
If Npc(i).Name = npcname Then
Call AddText("in if statement", vbBlack)
Call AttackNPC(Index, i)
Call AddText("recieved attack request", vbBlack)
End If
Next i
End If