CreateObject <- Kein Objekt oO

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 Breadfish,


    ich habe ein Problem..
    Undzwar, bei mir im Script werden einfach keine Objekte angezeigt.
    Weder mit "CreateObject" noch mit "CreateDynamicObject".
    Hoffe mir kann jemand von euch helfen, hier mein anfangscode aus
    OnGameModeInit();


    public OnGameModeInit()
    {
    SetGameModeText("GAC - New Generation of SA:MP");
    //==============================Timer=======================================
    SetTimer("UpdateSpeed",TACHOTIMER,1);
    SetTimer("TankTimer",8000,1);
    //==============================Pickups=====================================
    CreatePickup(1318,1,911.8251,-1247.7164,15.2632,0);
    //================================3DTexte===================================
    Create3DTextLabel("KFZ - Zulassung\n/zulassen",Color_Lila,911.8251,-1247.7164,15.2632,25,0);
    //--------------------------------------------------------------------------
    for(new j=0;j<MAX_KRAENE; j++)
    {
    LoadKran(j);
    LoadSelbstStaendig(j);
    LoadAutoHausCar(j);
    LoadTankstelle(j);
    }
    for(new v=0;v<MAX_VEHICLES;v++)
    {
    Tank[v] = 100;
    }
    //===============================TextDraws==================================
    Statusleiste = TextDrawCreate(663.000000, 429.000000, "Statusleiste");
    TextDrawBackgroundColor(Statusleiste, 255);
    TextDrawFont(Statusleiste, 1);
    TextDrawLetterSize(Statusleiste, 0.050000, 1.899999);
    TextDrawColor(Statusleiste, -1);
    TextDrawSetOutline(Statusleiste, 0);
    TextDrawSetProportional(Statusleiste, 1);
    TextDrawSetShadow(Statusleiste, 1);
    TextDrawUseBox(Statusleiste, 1);
    TextDrawBoxColor(Statusleiste, 83886195);
    TextDrawTextSize(Statusleiste, 0.000000, 0.000000);
    //=================================Objecte & Autos =========================
    //---------------------------------Polizei Base-----------------------------
    policecar[0] = AddStaticVehicleEx(525,1547.43566895,-1615.57238770,13.37281227,270.00000000,-1,-1,15); //Tow Truck
    policecar[1] = AddStaticVehicleEx(525,1555.85180664,-1615.60144043,13.37281227,270.00000000,-1,-1,15); //Tow Truck
    policecar[2] = AddStaticVehicleEx(596,1535.66186523,-1678.18530273,13.20281219,0.00000000,-1,1,15); //Police Car (LSPD)
    policecar[3] = AddStaticVehicleEx(596,1535.72045898,-1667.29760742,13.20281219,179.99963379,-1,1,15); //Police Car (LSPD)
    policecar[4] = AddStaticVehicleEx(596,1578.58068848,-1710.08728027,5.71062469,0.00000000,-1,1,15); //Police Car (LSPD)
    policecar[5] = AddStaticVehicleEx(596,1574.59643555,-1710.17187500,5.71062469,0.00000000,-1,1,15); //Police Car (LSPD)
    policecar[6] = AddStaticVehicleEx(596,1570.36340332,-1710.19299316,5.71062469,0.00000000,-1,1,15); //Police Car (LSPD)
    policecar[7] = AddStaticVehicleEx(596,1543.32592773,-1707.79968262,5.71062469,54.00000000,-1,1,15); //Police Car (LSPD)
    policecar[8] = AddStaticVehicleEx(596,1537.75366211,-1701.75549316,5.71062469,33.99780273,-1,1,15); //Police Car (LSPD)
    policecar[9] = AddStaticVehicleEx(596,1544.94921875,-1684.51318359,5.71062469,89.99719238,-1,1,15); //Police Car (LSPD)
    policecar[10] = AddStaticVehicleEx(596,1544.75036621,-1680.32153320,5.71062469,89.99719238,-1,1,15); //Police Car (LSPD)
    policecar[11] = AddStaticVehicleEx(599,1545.57006836,-1672.11059570,6.27575159,89.75000000,-1,1,15); //Police Ranger
    policecar[12] = AddStaticVehicleEx(599,1545.55273438,-1667.92675781,6.27575159,89.74731445,-1,1,15); //Police Ranger
    policecar[13] = AddStaticVehicleEx(599,1545.64257812,-1663.04003906,6.27575159,89.74731445,-1,1,15); //Police Ranger
    policecar[14] = AddStaticVehicleEx(523,1601.63293457,-1700.23632812,5.55100250,86.00000000,-1,-1,15); //HPV1000
    policecar[15] = AddStaticVehicleEx(523,1601.56896973,-1696.20849609,5.55100250,85.99548340,-1,-1,15); //HPV1000
    policecar[16] = AddStaticVehicleEx(523,1601.34191895,-1692.29370117,5.55100250,85.99548340,-1,-1,15); //HPV1000
    policecar[17] = AddStaticVehicleEx(523,1562.75646973,-1711.16357422,5.55100250,357.99548340,-1,-1,15); //HPV1000
    policecar[18] = AddStaticVehicleEx(523,1566.34375000,-1710.94555664,5.55100250,357.99499512,-1,-1,15); //HPV1000
    policecar[19] = AddStaticVehicleEx(427,1529.37646484,-1687.91882324,6.13862514,269.99963379,-1,1,15); //Enforcer
    policecar[20] = AddStaticVehicleEx(427,1529.39916992,-1683.88720703,6.13862514,269.99450684,-1,1,15); //Enforcer
    policecar[21] = AddStaticVehicleEx(603,1538.66931152,-1644.54272461,5.89330006,179.99963379,16,1,15); //Phoenix
    policecar[22] = AddStaticVehicleEx(560,1534.59228516,-1644.02868652,5.69560003,179.99963379,82,1,15); //Sultan
    policecar[23] = AddStaticVehicleEx(541,1530.54614258,-1643.82897949,5.59062481,177.99963379,-1,1,15); //Bullet
    policecar[24] = AddStaticVehicleEx(451,1526.49963379,-1644.04064941,5.65499687,179.99963379,1,1,15); //Turismo
    policecar[25] = AddStaticVehicleEx(497,1566.39965820,-1700.03698730,28.65980911,90.00000000,-1,1,15); //Police Maverick
    policecar[26] = AddStaticVehicleEx(497,1566.25256348,-1651.24768066,28.66060638,90.00000000,-1,1,15); //Police Maverick
    CreateDynamicObject(10832,1544.25390625,-1609.78027344,14.24063683,0.00000000,0.00000000,270.00000000); //object(gatehouse2_sfse) (1)
    polizeigate = CreateObject(975,1582.87927246,-1617.37524414,14.05750275,0.00000000,0.00000000,179.99450684); //object(columbiangate) (2)
    CreateDynamicObject(8673,1559.96191406,-1617.53454590,13.84972858,0.00000000,0.00000000,0.25000000); //object(csrsfence03_lvs) (1)
    CreateDynamicObject(8673,1569.23828125,-1617.48059082,13.84972858,0.00000000,0.00000000,0.24719238); //object(csrsfence03_lvs) (2)
    print("Debug #Create...");
    CreateDynamicObject(8673,1597.82434082,-1617.38537598,13.84972858,0.00000000,0.00000000,0.24719238); //object(csrsfence03_lvs) (5)


    P.S: Ich habe versucht zu debuggen doch es wird in der Log nicht angezeigt.


    lg
    OcB

    Einmal editiert, zuletzt von OcB ()

  • Nein eben nicht !
    Das sind die ersten Objecte die ich ins Script tue oO