SA-MP Forums Archive
what i use attachobjecttovehicle and the object didn't not show? - 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)
+--- Thread: what i use attachobjecttovehicle and the object didn't not show? (/showthread.php?tid=451918)



what i use attachobjecttovehicle and the object didn't not show? - Chrisli520 - 19.07.2013

my command:
Код:
                                               new veh = GetPlayerVehicleID(playerid);
							if(CarInfo[veh][cobj1] != 0 && CarInfo[veh][cobj2] != 0)
							{
							    SendClientMessage(playerid, COLOR_WHITE, "Your Car is no more space ");
							    return 1;
							}
							if(CarInfo[veh][cobj1] == 0)
							{
							    CarInfo[veh][cobj1] = CreateObject(19419, 0, 0, 0,   0.00, 0.00, 0.00);
							    AttachObjectToVehicle(CarInfo[veh][cobj1], veh, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
							    if(CarInfo[veh][cobj1] != 0)
							    {
							    	SendClientMessage(playerid, COLOR_WHITE, "Now you can edit them");
								}
							}
							else if(CarInfo[veh][cobj2] == 0 && CarInfo[veh][cobj1] != 0)
							{
							    CarInfo[veh][cobj2] = CreateObject(19419, 0, 0, 0,   0.00, 0.00, 0.00);
							    AttachObjectToVehicle(CarInfo[veh][cobj2], veh, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
							    SendClientMessage(playerid, COLOR_WHITE, "Now you can edit them by using /Px /py /pz");
							}



Re: what i use attachobjecttovehicle and the object didn't not show? - Chrisli520 - 19.07.2013

i use this to create object and attached to my car, and there are no object showing.