attached object to vehicle
#6

You have a global variable called Angle and it\'s messing with the local variable, try this code, I think this warning wont exist anymore.
Code:
CMD:infernus(playerid,params)
{
    new vehicle, Float:x, Float:y, Float:z, Float:angle;
    new myobject = CreateObject(359,0,0,-1000,0,0,0,100);
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid, angle);
    vehicle = CreateVehicle(411, x,y,z, angle,0,0,-1);
    AttachObjectToVehicle(myobject, vehicle, 1.125000,1.350000,0.075000,91.799980,-0.000001,91.799980);
    PutPlayerInVehicle(playerid, vehicle, 0);
    SendClientMessage(playerid,-1,"|| Operation complete ||"); // remove if u want

}
Reply


Messages In This Thread
attached object to vehicle - by kbalor - 02.11.2013, 17:04
Re: attached object to vehicle - by DaniceMcHarley - 02.11.2013, 17:33
Re: attached object to vehicle - by kbalor - 02.11.2013, 18:02
Re: attached object to vehicle - by DaniceMcHarley - 02.11.2013, 18:49
Re: attached object to vehicle - by kbalor - 02.11.2013, 19:01
Re: attached object to vehicle - by DaniceMcHarley - 02.11.2013, 19:05
Re: attached object to vehicle - by kbalor - 02.11.2013, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)