27-11-2006, 04:14 PM
I use a diferent way. I can't remember who did it, but it was someone from here(I think it was Verrigan):
Declare this:
And use it like this(example, npc):
I think it's much faster...
EDIT: Btw, I'm not using it only for Players, and I don't know why...
Declare this:
Code:
Public Declare Sub FillMemory Lib "kernel32.dll" Alias "RtlFillMemory" (Destination As Any, ByVal Length As Long, ByVal Fill As Byte)
Code:
Call FillMemory(ByVal VarPtr(Npc(Index)), LenB(Npc(Index)), 0)
EDIT: Btw, I'm not using it only for Players, and I don't know why...
