this is pissing me off. is there a fix for this code at all because the next at the end keep saying next without for and when i take them out i have to keep adding end if to the end of the sub but it never stops weird.
Code:
' //////////////////////////////////////
' // This is used for spawning an NPC //
' //////////////////////////////////////
' Check if we are supposed to spawn an npc or not
If MapNpc(y, x).Num = 0 And Map(y).Npc(x) > 0 Then
If TickCount > MapNpc(y, x).SpawnWait + (Npc(Map(y).Npc(x)).SpawnSecs * 1000) Then
Call SpawnNpc(x, y)
End If
End If
Next x
End If
DoEvents
Next y
this is the part causing the problems
Code:
Next x
thank you for your help.
_________________
Fuck? I really joined in 2006.
Spirea, Chat Rooms, Discussions, Help. everything you need in one spot.
http://spirean.comI love my computer, you never ask for more, you can be my princess or be my whore