Pawno stürtzt bei AttachObjectToVehicle ab

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo mein pawno stürtzt immer ab wenn ich AttachObjectToVehicle mache


    new myobject = CreateObject(18647,0,0,-1000,0,0,0,100);
    new myobject = CreateObject(356,0,0,-1000,0,0,0,100);


    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.000000,-0.674999,0.675000,-0.000001,5.400001,94.499977);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.824999,-0.300000,-0.600000,0.000002,0.000000,-0.000002);


    Ist dies richtig?

  • // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
    new myobject[0] = CreateObject(18647,0,0,-1000,0,0,0,100);
    new myobject[1] = CreateObject(356,0,0,-1000,0,0,0,100);






    public OnGameModeInit()




    {
    // Don't use these lines if it's a filterscript
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.824999,-0.300000,-0.600000,0.000002,0.000000,-0.000002);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.000000,-0.674999,0.675000,-0.000001,5.400001,94.499977);


    return 1;
    }


    #kann mir keiner helfen?

  • new myobject[2];
    myobject[0] = CreateObject(18647,0,0,-1000,0,0,0,100);
    myobject[1] = CreateObject(356,0,0,-1000,0,0,0,100);






    public OnGameModeInit()




    {
    // Don't use these lines if it's a filterscript
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.824999,-0.300000,-0.600000,0.000002,0.000000,-0.000002);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.000000,-0.674999,0.675000,-0.000001,5.400001,94.499977);


    return 1;
    }