Errors die ich nicht wegmachen kann :S

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
  • Zeile (117) : error 029: Ungültiger Befehl
    Zeile (117) : error 004: function "OnDialogResponse" is not implemented
    Zeile (119) : warning 219: local variable "vehicle" shadows a variable at a preceding level
    Zeile (120) : warning 219: local variable "model" shadows a variable at a preceding level
    Zeile (122) : Unbekannte Variable : "dialogid"
    Zeile (124) : Unbekannte Variable : "response"
    Zeile (126) : Unbekannte Variable : "listitem"
    Zeile (134) : Unbekannte Variable : "listitem"
    Zeile (142) : Unbekannte Variable : "listitem"
    Zeile (150) : Unbekannte Variable : "listitem"
    Zeile (158) : Unbekannte Variable : "listitem"
    Zeile (166) : Unbekannte Variable : "listitem"
    Zeile (174) : Unbekannte Variable : "listitem"
    Zeile (182) : Unbekannte Variable : "listitem"
    Zeile (190) : Unbekannte Variable : "listitem"
    Zeile (198) : Unbekannte Variable : "listitem"
    Zeile (206) : Unbekannte Variable : "listitem"
    Zeile (221) : error 030: compound statement not closed at the end of file (started at line 44)


    16 Errors, 2 Warnungen


    Diese Errors kann ich nicht beheben
    Und hier die zeilen zu dennen
    117: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    119: new vehicle = GetPlayerVehicleID(playerid);
    120: new model = GetPlayerVehicleID(playerid);
    122: if(dialogid == huntleyspl)
    124: if (response)
    126 - 216: if(listitem == 0)
    230: gibt es nicht


    Ich bitte um eure hilfe


    EDIT: Errors in PWN...

  • public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new vehicle = GetPlayerVehicleID(playerid);
    new model = GetPlayerVehicleID(playerid);
    model = GetVehicleModel(model);
    if(dialogid == huntleyspl)
    {
    if (response)
    {
    if(listitem == 0)
    {
    huntleyspoiler1 = CreateObject(1164,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler1, vehicle, 0.00000000, -2.40270996, 1.30294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 1 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 1)
    {
    huntleyspoiler2 = CreateObject(1163,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler2, vehicle, 0.00000000, -2.40270996, 1.30294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 2 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 2)
    {
    huntleyspoiler3 = CreateObject(1162,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler3, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 3 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 3)
    {
    huntleyspoiler4 = CreateObject(1158,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler4, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 4 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 4)
    {
    huntleyspoiler5 = CreateObject(1147,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler5, vehicle, 0.00000000, -2.40270996, 1.20294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 5 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 5)
    {
    huntleyspoiler6 = CreateObject(1146,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler6, vehicle, 0.00000000, -2.40270996, 1.20294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 6 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 6)
    {
    huntleyspoiler7 = CreateObject(1060,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler7, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 7 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 7)
    {
    huntleyspoiler8 = CreateObject(1023,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler8, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 8 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 8)
    {
    huntleyspoiler9 = CreateObject(1016,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler9, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 9 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 9)
    {
    huntleyspoiler9 = CreateObject(1016,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler9, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 9 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    if(listitem == 10)
    {
    huntleyspoiler11 = CreateObject(1000,2490.83129883,-1670.16796875,14.74533653 ,0.00000000,0.00000000,0.00000000); //object(spl_a_u_b) (1)
    AttachObjectToVehicle(huntleyspoiler11, vehicle, 0.00000000, -2.40270996, 1.10294895, 0.00000000, 0.00000000, 0.00000000);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler 11 Angebaut!");
    huntleyspoiler[vehicle] = 1;
    }
    }
    }
    return 1;
    }

  • Trooper
    50 Zeilen die du wolltest^^
    SendClientMessage(playerid,COLOR_GREEN,"Spoiler System Cars: Huntley more coming soon");
    SendClientMessage(playerid,COLOR_GREEN,"/spoiler - /spoilerweg");
    return 1;
    }


    if (strcmp("/spoiler", cmdtext, true, 10) == 0)
    {
    if(model == 579)
    {
    if(huntleyspoiler[vehicle] == 0)
    {
    ShowPlayerDialog(playerid,huntleyspl,DIALOG_STYLE_LIST,"Huntley Spoiler","Spoiler 1\nSpoiler 2\nSpoiler 3\nSpoiler 4\nSpoiler 5\nSpoiler 6\nSpoiler 7\nSpoiler 8\nSpoiler 9\nSpoiler 10\nSpoiler 11","Tunen","Abbrechen");
    }
    else if(huntleyspoiler[vehicle] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"An ihrem Auto ist bereits ein Spoiler drangebaut!");
    }
    return 1;
    }



    if (strcmp("/spoilerweg", cmdtext, true, 10) == 0)
    {
    if(model == 579)
    {
    if(huntleyspoiler[vehicle] == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Sie haben kein Spoiler am Huntley!");
    }
    else if(huntleyspoiler[vehicle] == 1)
    {
    DestroyObject(huntleyspoiler1);
    DestroyObject(huntleyspoiler2);
    DestroyObject(huntleyspoiler3);
    DestroyObject(huntleyspoiler4);
    DestroyObject(huntleyspoiler5);
    DestroyObject(huntleyspoiler6);
    DestroyObject(huntleyspoiler7);
    DestroyObject(huntleyspoiler8);
    DestroyObject(huntleyspoiler9);
    DestroyObject(huntleyspoiler10);
    DestroyObject(huntleyspoiler11);
    huntleyspoiler[vehicle] = 0;
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    }
    }
    return 1;
    }
    return 0;
    }


    und die errors waren
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(117) : error 029: invalid expression, assumed zero
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(117) : error 004: function "OnDialogResponse" is not implemented
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(119) : error 017: undefined symbol "dialogid"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(121) : error 017: undefined symbol "@response"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(123) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(131) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(139) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(147) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(155) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(163) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(171) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(179) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(187) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(195) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(203) : error 017: undefined symbol "listitem"
    C:\Users\Bauer\Downloads\Script\filterscripts\spoilersysDE.pwn(216) : error 030: compound statement not closed at the end of file (started at line 44)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    16 Errors.

  • if (strcmp("/spoilerweg", cmdtext, true, 10) == 0)
    {
    if(model == 579)
    {
    if(huntleyspoiler[vehicle] == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Sie haben kein Spoiler am Huntley!");
    }
    else if(huntleyspoiler[vehicle] == 1)
    {
    DestroyObject(huntleyspoiler1);
    DestroyObject(huntleyspoiler2);
    DestroyObject(huntleyspoiler3);
    DestroyObject(huntleyspoiler4);
    DestroyObject(huntleyspoiler5);
    DestroyObject(huntleyspoiler6);
    DestroyObject(huntleyspoiler7);
    DestroyObject(huntleyspoiler8);
    DestroyObject(huntleyspoiler9);
    DestroyObject(huntleyspoiler10);
    DestroyObject(huntleyspoiler11);
    huntleyspoiler[vehicle] = 0;
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    }
    }
    return 1;
    }

    sieht komisch aus...


    Vllt so ?

    if (strcmp("/spoilerweg", cmdtext, true, 10) == 0)
    {
    if(model == 579)
    {
    if(huntleyspoiler[vehicle] == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Sie haben kein Spoiler am Huntley!");
    }
    if(huntleyspoiler[vehicle] == 1)
    {
    DestroyObject(huntleyspoiler1);
    DestroyObject(huntleyspoiler2);
    DestroyObject(huntleyspoiler3);
    DestroyObject(huntleyspoiler4);
    DestroyObject(huntleyspoiler5);
    DestroyObject(huntleyspoiler6);
    DestroyObject(huntleyspoiler7);
    DestroyObject(huntleyspoiler8);
    DestroyObject(huntleyspoiler9);
    DestroyObject(huntleyspoiler10);
    DestroyObject(huntleyspoiler11);
    huntleyspoiler[vehicle] = 0;
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    }
    return 1;
    }


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