/sirenen System fehler...

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
  • Code
    (28259) : warning 206: redundant test: constant expression is non-zero
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    1 Warning.


    f(IsACop(playerid))
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560,579,507,411,541,451,415) //ZEILE 28259
    {
    sfl1[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
    sfl2[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
    sfl3[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
    sfl4[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
    sfl5[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
    AttachObjectToVehicle(sfl1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.365000,2.250000,0.049999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(sfl2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.405000,2.250000,0.049999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(sfl3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.270000,2.275000,0.019999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(sfl4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.304999,2.275000,0.019999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(sfl5[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.589999,-0.069999,0.869999,0.000000,0.000000,0.000000);


    wo ist mein Fehler? kann mir jemand helfen..

  • Mach es so:



    new car = GetPlayerVehicleID(playerid);
    if(car == 560 || car == 579 || car == 507 || car == 411 || car == 541 || car == 451 || car == 415)
    {
    //code..
    }


    Mit freundlichen Grüßen,
    Litpa.


    //edit:
    Oh Sorry, hab mich verwechselt.. Versuchs mal damit:

    car = GetVehicleModel(GetPlayerVehicleID));


    MfG.

    Einmal editiert, zuletzt von Litpa ()