Help with Attach3DTextLabel
#16

I have a new Problem, with my Car System, since i added tuning, it doesn't save anymore

My Code:

Код:
stock saveCars(playerid)
{
	new Spoiler, Hood, Roof, Sideskirt, Lamps, Nitro, Exhaust, Wheels, Stereo, Hydraulics, FrontBumper, RearBumper, VentRight, VentLeft;
	Spoiler = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_SPOILER);
	Hood = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_HOOD);
	Roof = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_ROOF);
	Sideskirt = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_SIDESKIRT);
	Lamps = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_LAMPS);
	Nitro = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_NITRO);
	Exhaust = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_EXHAUST);
	Wheels = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_WHEELS);
	Stereo = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_STEREO);
	Hydraulics = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_HYDRAULICS);
	FrontBumper = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_FRONT_BUMPER);
	RearBumper = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_REAR_BUMPER);
	VentRight = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_VENT_RIGHT);
	VentLeft = GetVehicleComponentInSlot(cInfo[playerid][id],CARMODTYPE_VENT_LEFT);
	new query[256];
	new Float:x,Float:y,Float:z,Float:a;
	GetVehiclePos(cInfo[playerid][id],x,y,z);
	GetVehicleZAngle(cInfo[playerid][id],a);
	format(query,sizeof(query),"UPDATE autos SET x='%f',y='%f',z='%f',a='%f',Spoiler='%d',Hood='%d',Roof='%d',Sideskirt='%d',Lamps='%d',Nitro='%d',Exhaust='%d',Wheels='%d',Stereo='%d',Hydraulics='%d',FrontBumper='%d',RearBumper='%d',VentRight='%d',VentLeft='%d' WHERE besitzer='%d'",
	x,y,z,a,Spoiler,Hood,Roof,Sideskirt,Lamps,Nitro,Exhaust,Wheels,Stereo,Hydraulics,FrontBumper,RearBumper,VentRight,VentLeft,pInfo[playerid][db_id]);
	mysql_function_query(dbhandle,query,false,"","");
	return 1;
}
Reply


Messages In This Thread
Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 17:15
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 17:36
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 17:51
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 17:53
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 18:00
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 18:29
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 18:48
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 18:50
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 18:53
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 18:59
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 19:06
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 19:20
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 19:21
Re: Help with Attach3DTextLabel - by JesterlJoker - 21.04.2018, 19:30
Re: Help with Attach3DTextLabel - by ImTobi - 21.04.2018, 19:40
Re: Help with Attach3DTextLabel - by ImTobi - 22.04.2018, 00:18
Re: Help with Attach3DTextLabel - by Exhibit - 22.04.2018, 13:26
Re: Help with Attach3DTextLabel - by ImTobi - 22.04.2018, 14:36
Re: Help with Attach3DTextLabel - by Exhibit - 23.04.2018, 10:34
Re: Help with Attach3DTextLabel - by ImTobi - 23.04.2018, 15:34
Re: Help with Attach3DTextLabel - by Exhibit - 25.04.2018, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)