Neon warning

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
  • C:\Dokumente und Einstellungen\Nick\Desktop\Server\gamemodes\Neonlicht.pwn(65) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.




    }
    else
    {

  • #include <a_samp>
    new Menu:neom;
    new neo1 ,neo2;


    public OnFilterScriptInit()
    {
    print(" Neon SYS by Piet");
    //Neon Menu
    neom = CreateMenu("Neon_Menu", 1, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(neom, 0, "Rotes Neon");
    AddMenuItem(neom, 0, "Blaues Neon");
    AddMenuItem(neom, 0, "Grünes Neon");
    AddMenuItem(neom, 0, "Gelbes Neon");
    AddMenuItem(neom, 0, "Pinkes Neon");
    AddMenuItem(neom, 0, "Neon Weg");
    //Neon Menu
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/neon", true) == 0)
    {
    ShowMenuForPlayer(neom,playerid);
    return 1;
    }
    return 0;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    new Menu:current;
    current = GetPlayerMenu(playerid);
    if(current == neom)
    {
    switch(row)
    {
    case 0:
    {
    new acid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    neo1 = CreateObject(18647, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
    neo2 = CreateObject(18647, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    SendClientMessage(playerid,0xFF000000,"Rotes Neon!");
    }
    else
    {
    SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!");
    }
    }
    case 1:
    {
    new acid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    neo1 = CreateObject(18648, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
    neo2 = CreateObject(18648, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    SendClientMessage(playerid,0xFF000000,"Blaues Neon!");
    }
    else
    {
    SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!");
    }
    }
    case 2:
    {
    new acid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    neo1 = CreateObject(18649, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
    neo2 = CreateObject(18649, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    SendClientMessage(playerid,0xFF000000,"Grünes Neon!");
    }
    else
    {
    SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!");
    }
    }
    case 3:
    {
    new acid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    neo1 = CreateObject(18650, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
    neo2 = CreateObject(18650, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    SendClientMessage(playerid,0xFF000000,"Gelbes Neon!");
    }
    else
    {
    SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!");
    }
    }
    case 4:
    {
    new acid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    neo1 = CreateObject(18651, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
    neo2 = CreateObject(18651, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
    SendClientMessage(playerid,0xFF000000,"Pinkes Neon!");
    }
    else
    {
    SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!");
    }
    }
    case 5:
    {
    DestroyObject(neo1);
    DestroyObject(neo2);
    }
    }
    }
    return 1;
    }

  • #include <a_samp>new Menu:neom;new neo1 ,neo2;
    public OnFilterScriptInit(){ print(" Neon SYS by Piet"); //Neon Menu neom = CreateMenu("Neon_Menu", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(neom, 0, "Rotes Neon"); AddMenuItem(neom, 0, "Blaues Neon"); AddMenuItem(neom, 0, "Grünes Neon"); AddMenuItem(neom, 0, "Gelbes Neon"); AddMenuItem(neom, 0, "Pinkes Neon"); AddMenuItem(neom, 0, "Neon Weg"); //Neon Menu return 1;}
    public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(cmdtext, "/neon", true) == 0) { ShowMenuForPlayer(neom,playerid); return 1; }return 0;}
    public OnPlayerSelectedMenuRow(playerid, row){ new Menu:current; current = GetPlayerMenu(playerid); if(current == neom) { switch(row) { case 0: { new acid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { neo1 = CreateObject(18647, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00); neo2 = CreateObject(18647, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00); SendClientMessage(playerid,0xFF000000,"Rotes Neon!"); } else { SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!"); } } case 1: { new acid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { neo1 = CreateObject(18648, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00); neo2 = CreateObject(18648, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00); SendClientMessage(playerid,0xFF000000,"Blaues Neon!"); } else { SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!"); } } case 2: { new acid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { neo1 = CreateObject(18649, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00); neo2 = CreateObject(18649, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00); SendClientMessage(playerid,0xFF000000,"Grünes Neon!"); } else { SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!"); } } case 3: { new acid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { neo1 = CreateObject(18650, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00); neo2 = CreateObject(18650, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00); SendClientMessage(playerid,0xFF000000,"Gelbes Neon!"); } else { SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!"); } } case 4: { new acid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { neo1 = CreateObject(18651, -0.66, 0.04, -0.48, 0.00, 0.00, 0.00); neo2 = CreateObject(18651, 0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo1,acid,-0.68, 0.04, -0.48, 0.00, 0.00, 0.00); AttachObjectToVehicle(neo2,acid,0.68, 0.04, -0.48, 0.00, 0.00, 0.00); SendClientMessage(playerid,0xFF000000,"Pinkes Neon!"); } else { SendClientMessage(playerid,0xFF000000,"Du bist in keinem Auto!"); } } case 5: { DestroyObject(neo1); DestroyObject(neo2); } } } return 1;}