12.10.2014, 22:56
This error is caused by you trying to change a memory address that doesn't exist example:
You have defined "Windows[3]", and then used...
This I can't imagine being a problem with the Windows code, as this essentially is a set number... you cannot unknowling exceed it unless you mis count.
EDIT: In your loop i = 1? Why? This could cause it depending on what MAX_WINDOWSis set at. Memory/Arrays begin at 0, and work up.
EDIT 2: Infact your orignal code would cause this... because your changing variable ID 4 MAX_WINDOWS. Which the max number is 3, including 0. THe code I posted shouldn't cause this.
You have defined "Windows[3]", and then used...
pawn Код:
Windows[0]
Windows[1]
Windows[2]
Windows[3] // Doesn't exist.
EDIT: In your loop i = 1? Why? This could cause it depending on what MAX_WINDOWSis set at. Memory/Arrays begin at 0, and work up.
EDIT 2: Infact your orignal code would cause this... because your changing variable ID 4 MAX_WINDOWS. Which the max number is 3, including 0. THe code I posted shouldn't cause this.