sa-mp.exe doesn't finish
#8

It exceeds the bounds. MAX_PLAYERS was defined as 500 so the valid indexes are 0-499.

In a loop (most likely) in TaxiFare, you may have a check like that (an example):
pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
// It's been executed 501 times.
That's incorrect and it should be:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
// It's been executed 500 times - just like MAX_PLAYERS.
Reply


Messages In This Thread
sa-mp.exe doesn't finish - by Coldfox - 24.12.2013, 10:21
Re: sa-mp.exe doesn't finish - by Konstantinos - 24.12.2013, 10:32
Re: sa-mp.exe doesn't finish - by Coldfox - 24.12.2013, 11:00
Re: sa-mp.exe doesn't finish - by Konstantinos - 24.12.2013, 11:08
Re: sa-mp.exe doesn't finish - by Coldfox - 24.12.2013, 11:20
Re: sa-mp.exe doesn't finish - by Konstantinos - 24.12.2013, 11:22
Re: sa-mp.exe doesn't finish - by Coldfox - 24.12.2013, 11:29
Re: sa-mp.exe doesn't finish - by Konstantinos - 24.12.2013, 11:33
Re: sa-mp.exe doesn't finish - by Tom Kingston - 24.12.2013, 12:02
Re: sa-mp.exe doesn't finish - by Konstantinos - 24.12.2013, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)