Windows
#5

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
Same error with crashdetect.

Array index out of bounds.
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...

pawn Код:
Windows[0]
Windows[1]
Windows[2]
Windows[3] // Doesn't exist.
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.
Reply


Messages In This Thread
Windows - by Chrillzen - 12.10.2014, 22:38
Re: Windows - by IceCube! - 12.10.2014, 22:49
Re: Windows - by VitalRP - 12.10.2014, 22:51
Re: Windows - by Chrillzen - 12.10.2014, 22:54
Re: Windows - by IceCube! - 12.10.2014, 22:56
Re: Windows - by Chrillzen - 12.10.2014, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)