Loop to spawn all vehicles
#2

Using "0" as first argument of cache_get_field_content, it will only load for the first row found. Use a loop instead and you have to use cache_delete otherwise you're going to have problems with memory leaks. Also using "SCRIPT_CARS" as index will give error about array index out of bounds.

In fact, I just remember I helped you with that few days ago: http://forum.sa-mp.com/showpost.php?...84&postcount=8
so I'm not going to write some code.
Reply


Messages In This Thread
Loop to spawn all vehicles - by Blademaster680 - 03.07.2014, 15:13
Re: Loop to spawn all vehicles - by Konstantinos - 03.07.2014, 15:24
Re: Loop to spawn all vehicles - by Blademaster680 - 03.07.2014, 15:26
Re: Loop to spawn all vehicles - by Konstantinos - 03.07.2014, 15:29
Re: Loop to spawn all vehicles - by Blademaster680 - 03.07.2014, 15:40
Re: Loop to spawn all vehicles - by Blademaster680 - 03.07.2014, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)