help due to this server server bug
#9

Except the fact you posted 5+ irrelevant commands along with the function, you've been told the solution: http://forum.sa-mp.com/showpost.php?...2&postcount=31
I see you changed the part that the sql ID was used as index which is good but the other thing is still the same.

Instead of keep checking with an if statement, just change

pawn Код:
count = db_num_rows(qresult);
to:
pawn Код:
count = clamp(db_num_rows(qresult), .max = sizeof oVehicle);
so if there are more rows than the size of the array, it will load only as many as it can. You may want to compare it and print in the console to let you know (to increase the size of the array) but nevermind for now. By the way, the logs are old as the current size is 600 but says 500.

Last, remove this completely:
pawn Код:
if (count <= MAX_SCRIPT_VEHICLES)
Just be careful with the brackets.
Reply


Messages In This Thread
help due to this server server bug - by KNIGHT786 - 17.12.2016, 09:58
Re: help due to this server server bug - by Runn3R - 17.12.2016, 10:25
Re: help due to this server server bug - by KNIGHT786 - 17.12.2016, 10:28
Re: help due to this server server bug - by Runn3R - 17.12.2016, 10:31
Re: help due to this server server bug - by KNIGHT786 - 17.12.2016, 10:52
Re: help due to this server server bug - by iLearner - 17.12.2016, 11:05
Re: help due to this server server bug - by KNIGHT786 - 17.12.2016, 14:22
Re: help due to this server server bug - by KNIGHT786 - 17.12.2016, 14:28
Re: help due to this server server bug - by Konstantinos - 17.12.2016, 14:43
Re: help due to this server server bug - by KNIGHT786 - 17.12.2016, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)