28 Errors: Tag missmatch

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
  • HeyHoo,


    Ich habe diese 28 Errors:

    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1529) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1530) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1534) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1538) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1542) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1546) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1550) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1554) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1558) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1562) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1572) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1573) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1577) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1581) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1585) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1589) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1593) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1597) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1601) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1605) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1615) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1616) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1620) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1624) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1628) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1632) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1636) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1640) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    28 Warnings.



    Hier die Zeilen (direkt der ganze OnDialogResponse):

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    switch(dialogid==DIALOG_BSNESSEN)
    {
    case 1:
    {
    if(!response)
    {
    return 1;
    }
    switch(listitem)
    {
    case 0:
    {
    new float:health;
    GetPlayerHealth(playerid,health);//Zeile 1529
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 14);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 26);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 34);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 42);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 56);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 83);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 99);
    }
    GivePlayerMoney(playerid,-10);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 1:
    {
    new float:health;
    GetPlayerHealth(playerid,health);
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 18);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 29);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 37);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 46);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 57);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 78);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 85);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-15);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 2:
    {
    new float:health;
    GetPlayerHealth(playerid,health);
    if (health < 1 )
    {
    SetPlayerHealth(playerid, 60);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 68);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 82);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 89);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 93);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-18);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    }
    }
    }
    return 1;
    }


    Bitte helft mir!


    lg

  • damit gehe ich alle Dialoge die "gelistet" sind durch (DIALOG_STYLE_LIST)!
    Hier die Page vom SAMP Wiki: http://wiki.sa-mp.com/wiki/OnDialogResponse


    Fortschritt:
    Ich habe die float rausgenommen, bekomme nurnoch 3 Warnings bei
    GetPlayerHealth(playerid,health);


    hier wieder die Zeilen:

    switch(dialogid==DIALOG_BSNESSEN)
    {
    case 1:
    {
    if(!response)
    {
    return 1;
    }
    switch(listitem)
    {
    case 0:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1529
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 14);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 26);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 34);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 42);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 56);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 83);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 99);
    }
    GivePlayerMoney(playerid,-10);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 1:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1572
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 18);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 29);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 37);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 46);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 57);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 78);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 85);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-15);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 2:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1615
    if (health < 1 )
    {
    SetPlayerHealth(playerid, 60);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 68);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 82);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 89);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 93);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-18);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    }
    }
    }
    return 1;
    }


    /e:
    Errors:

    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1529) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1572) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1615) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Warnings.


  • Dein 1. Fehler war es nicht Float sondern float zu nennen
    dein 2. es komplett zu entfernen
    new Float:health;
    so heißt es richtig
    dein 3. Fehler ist der hier
    switch(dialogid==DIALOG_BSNESSEN)
    richtig wäre
    switch(dialogid)

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski