SA-MP Forums Archive
Some tuning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Some tuning (/showthread.php?tid=120894)



Some tuning - Toad - 13.01.2010

Hello samp forums, i got a lil issue with my tuning save&load.
i searched it, downloaded some fs but none helped because theyre pretty the same as my code
my problem is that my car spawns but its not tuned..
Код:
	for(new i = 0; i < 17; i++) //max tunes (no pjob)
	{
		if(CarInfo[vehicleid][cTune][i] != 0)
		{
			AddVehicleComponent(vehicleid, CarInfo[vehicleid][cTune][i]);
			printf("houseid: %d  slot: %d  component: %d  adding", vehicleid, i, CarInfo[vehicleid][cTune][i]); //appears...
		}
	}
the weird thing about it is that the prints are all appearing ... but theres no tuning added to the vehicle ..
can anyone help me with that?


Re: Some tuning - Luca Dimonte - 13.01.2010

Well, if the printf appears, I can only think that you are next to and looking at the wrong car (car with a different vehicleid that you expected to be tuned).


Re: Some tuning - TheChaoz - 14.01.2010

look at this topic
it's in spanish but the code work perfectly
(well i made it, and it work for me)
http://forum.sa-mp.com/index.php?top...9037#msg869037
i hope it's help u



Re: Some tuning - Toad - 15.01.2010

@luca thx for replying: it wasnt directly the wrong vehicle but thanks without you i wouldnt have found the error
@the chaoz sry but that wasnt helpful thanks anyway
i found the bug