Brauche hilfe beim fixxen vom error und warnings, Danke!

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
  • ^This


    Hier die error und warnings:



    Hier die betroffenen reihen:


    6474: if(IsPlayerNPC(playerid))
    7187 bis 7189:public OnRconCommand(cmd[])
    {
    return 1;
    }


    12196: ConnectNPC("FlugzeugBot","FlugzeugBot");
    17386 eine zeile omg -.- if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))


    Hilft mir, Danke im vorraus.


  • Klammer fehler bei Zeile 17386 must das rein ;

  • Schau dir die zeile 17386 mal genau an..
    if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))
    änder das mal in
    if(!strcmp(cmd,"/lslinie1",true) || !strcmp(cmd,"/lsline1",true))


    obs dann geht =?

  • Ne klappt net :( immer noch 7 errors


    hier mal das ganze was von der zeile 17386


    {
    if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))
    {
    ShowPlayerLSLine1Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie2",cmd,true) || !strcmp("/lsline2",cmd,true))
    {
    ShowPlayerLSLine2Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie3",cmd,true) || !strcmp("/lsline3",cmd,true))
    {
    ShowPlayerLSLine3Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie4",cmd,true) || !strcmp("/lsline4",cmd,true))
    {
    ShowPlayerLSLine4Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie5",cmd,true) || !strcmp("/lvline5",cmd,true))
    {
    ShowPlayerLVLine5Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie6",cmd,true) || !strcmp("/lvline6",cmd,true))
    {
    ShowPlayerLVLine6Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie7",cmd,true) || !strcmp("/lvline7",cmd,true))
    {
    ShowPlayerLVLine7Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie8",cmd,true) || !strcmp("/lvline8",cmd,true))
    {
    ShowPlayerLVLine8Dialog(playerid);
    return 1;
    }
    return 0;

  • Hier Zeile 6474


    //--------------------------------------------------------------------------------------------
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "FlugzeugBot", true))
    {
    PutPlayerInVehicle(playerid, car_FlugzeugBot, 0);
    return 1;
    }
    }
    //---------------------------------


    Die folgenden zeilen von 17386


    public OnPlayerCommandText(playerid, cmdtext[])


    {
    if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))
    {
    ShowPlayerLSLine1Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie2",cmd,true) || !strcmp("/lsline2",cmd,true))
    {
    ShowPlayerLSLine2Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie3",cmd,true) || !strcmp("/lsline3",cmd,true))
    {
    ShowPlayerLSLine3Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lslinie4",cmd,true) || !strcmp("/lsline4",cmd,true))
    {
    ShowPlayerLSLine4Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie5",cmd,true) || !strcmp("/lvline5",cmd,true))
    {
    ShowPlayerLVLine5Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie6",cmd,true) || !strcmp("/lvline6",cmd,true))
    {
    ShowPlayerLVLine6Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie7",cmd,true) || !strcmp("/lvline7",cmd,true))
    {
    ShowPlayerLVLine7Dialog(playerid);
    return 1;
    }


    if(!strcmp("/lvlinie8",cmd,true) || !strcmp("/lvline8",cmd,true))
    {
    ShowPlayerLVLine8Dialog(playerid);
    return 1;
    }
    return 0;



    stock ShowPlayerLSLine1Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LSLINE1,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie1 Haltestellen","1 LSPD\n2 LS Bank\n3 LS BSN\n4 LS Krankenhaus\n5 LS Television\n6 LS Pay n Spray Beach\n7 LS Beach\n8 LS Airport\n9 LS Pay n Spray / Haircutter\n10 LS PD Tankstelle\n11 LSPD","OK","OK");
    }


    stock ShowPlayerLSLine2Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LSLINE2,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie2 Haltestellen","1 LS PD Tankstelle\n2 LS Airport\n3 LS East Beach\n4 LS Forum\n5 LS Grove Street / Cluckin Bell\n6 LS Bank\n7 LS Krankenhaus\n8 LS Fahrschule\n9 LSPD\n10 LS PD Tankstelle","OK","OK");
    }


    stock ShowPlayerLSLine3Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LSLINE3,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie3 Haltestellen","1 LS Spawn\n2 LS Krankenhaus\n3 LS Television\n4 LS - Mount Chilliad Petrol Station\n5 Mount Chilliad 69 - LS\n6 LS Village\n7 LS BSN\n8 LS Bank\n9 LS Krankenhaus\n10 LS Spawn","OK","OK");
    }


    stock ShowPlayerLSLine4Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LSLINE4,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie4 Haltestellen","1 LS Spawn\n2 LSPD Tankstelle\n3 LS TheWellStackedPizza\n4 LS Bank\n5 LS Spawn","OK","OK");
    }


    stock ShowPlayerLVLine5Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LVLINE5,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie5 Haltestellen","1 LV Busstation\n2 LV VIP I\n3 LV VIP II\n4 LV International Airport\n5 LV Hotel - A\n6 LV Casino - B\n7 LV - PD\n8 LV Emerald Isle\n9 LV Spawn\n10 LV Ship\n11 LV Busstation","OK","OK");
    }


    stock ShowPlayerLVLine6Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LVLINE6,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie6 Haltestellen","1 LV Busstation\n2 LV International Airport\n3 LV Casino - B\n4 LS Bank\n5 LS Krankenhaus\n6 LS PD Tankstelle\n7 LS International Airport\n8 LS Spawn\n9 LS Spawn II\n10 LS Bank\n11 LV Spawn\n12 LV Ship\n13 LV Hotel - A\n14 LV Four Dragons\n15 LV Hafen\n16 LV Busstation Tankstelle\n17 LV Busstation","OK","OK");
    }


    stock ShowPlayerLVLine7Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LVLINE7,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie7 Haltestellen","1 LV Casino - B\n2 LV Spawn\n3 LV International Airport\n4 LV Busstation\n5 LV VIP I\n6 LV VIP II\n7 LV Casino - B","OK","OK");
    }


    stock ShowPlayerLVLine8Dialog(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_LVLINE8,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie8 Haltestellen","1 LV International Airport\n2 SF International Airport\n3 LS International Airport\n4 LS Bank\n5 LV International Airport","OK","OK");
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen