Some tuning
#1

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?
Reply
#2

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).
Reply
#3

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
Reply
#4

@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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)