what i use attachobjecttovehicle and the object didn't not show?
#1

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");
							}
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)