Neon system Funktioniert nicht

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
  • stock VehicleTuning(playerid, slot){ if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID])) { GetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor])KillTimer(Vehicle[PrivateVehicle[playerid][slot][vehID]][VehicleTimer]); Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehLicht] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehHaube] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehKRaum] = false; new playerName[MAX_PLAYER_NAME+1], nPlate[32], cutName[24+1]; GetPlayerName(playerid, playerName, sizeof(playerName)); strmid(cutName, playerName, 0, 1, sizeof(cutName)); format(nPlate, sizeof(nPlate), "{B22222}SA %s %d", cutName, PrivateVehicle[playerid][slot][vehID]); SetVehicleNumberPlate(PrivateVehicle[playerid][slot][vehID], nPlate); LinkVehicleToInterior(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehInterior]); SetVehicleVirtualWorld(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWorld]); if(PrivateVehicle[playerid][slot][vehPaintjob] >= 0)ChangeVehiclePaintjob(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPaintjob]); if(PrivateVehicle[playerid][slot][vehColor1] >= 0 || PrivateVehicle[playerid][slot][vehColor2] >= 0) ChangeVehicleColor(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehColor1], PrivateVehicle[playerid][slot][vehColor2]); if(PrivateVehicle[playerid][slot][vehSpoiler] >= 1000){ AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSpoiler]); } if(PrivateVehicle[playerid][slot][vehHood] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHood]); } if(PrivateVehicle[playerid][slot][vehRoof] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRoof]); } if(PrivateVehicle[playerid][slot][vehSideskirt] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSideskirt]); } if(PrivateVehicle[playerid][slot][vehLamps] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehLamps]); } if(PrivateVehicle[playerid][slot][vehNitro] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehNitro]); } if(PrivateVehicle[playerid][slot][vehExhaust] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehExhaust]); } if(PrivateVehicle[playerid][slot][vehWheels] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWheels]); } if(PrivateVehicle[playerid][slot][vehStereo] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehStereo]); } if(PrivateVehicle[playerid][slot][vehHydraulics] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHydraulics]); } if(PrivateVehicle[playerid][slot][vehFrontBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehFrontBumper]); } if(PrivateVehicle[playerid][slot][vehRearBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRearBumper]); } if(PrivateVehicle[playerid][slot][vehVentRight] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentRight]); } if(PrivateVehicle[playerid][slot][vehVentLeft] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentLeft]); } switch(PrivateVehicle[playerid][slot][vehNeonID]) { case 1: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 2: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 3: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß case 4: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 5: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 6: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot } SetVehiclePos(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosX], PrivateVehicle[playerid][slot][vehPosY], PrivateVehicle[playerid][slot][vehPosZ]); SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosA]); } return 1;}


    //Edit fail

    Neon wird nicht angezeigt.

    Einmal editiert, zuletzt von Tyazair ()

  • Huhu,


    du hattest mich ja per PN gefragt.
    Für die Allgemeinheit frage ich mal was in der Konsole steht wenn du das so schreibst:


    new neon1 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon1: %d", neon1);
    new neon2 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon2: %d", neon2);


    auf der anderen Seite wäre dann die Frage ob du bei deinen Objekten nur "CreateObject" benutzt?
    Oder du auch "CreateDynamicObject" benutzt?


    Lg

    Man soll weder annehmen noch besitzen, was man nicht wirklich zum Leben braucht.



  • auf der anderen Seite wäre dann die Frage ob du bei deinen Objekten nur "CreateObject" benutzt?
    Oder du auch "CreateDynamicObject" benutzt?

    Hatte beides benutzt bei unterschiedlichen farben zum testen, mit dem Printf setze ich mich morgen mal dran.


    Unter was muss der Printf gesetzt werden?

    new neon1 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon1: %d", neon1);
    new neon2 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon2: %d", neon2);



    Grüße,

  • @Tyazair tausch den Code durch meinen alten aus. Einfach machen.
    Dann schauen was in der Console steht (also irgendwas mit neon1: 2939 und neon2: 2399)
    Und dann bitte hier rein kopieren

    Hier die Sachen aus der Konsole



    [22:03:19] *** CreateDynamic3DTextLabel: Expecting 13 parameter(s), but found 15
    [22:03:19] neon1: 133
    [22:03:19] neon2: 134