Error[Sirene und i ein Anderer Error]

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
  • Bei diesem Sirenen Script gibt es ingame ein Error


    die define


    #define DIALOG_SIRENEAN 128
    #define DIALOG_SIRENEAUS 129


    der sirenen Script


    if(strcmp(cmdtext,"/sirene",true)==0)
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid] [pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid] [pLeader] == 3 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid] [pLeader] == 22)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Staatsfraktion!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    new vid = GetPlayerVehicleID(playerid);
    if(sirenean[vid] == false)
    {
    ShowPlayerDialog(playerid,DIALOG_SIRENEAN,DIALOG_STYLE_MSGBOX,"Polizei Sirene","Möchtest du eine Sirene an dieses Fahrzeug anbauen ?","Ja","Nein");
    }
    else if(sirenean[vid] == true)
    {
    ShowPlayerDialog(playerid,DIALOG_SIRENEAUS,DIALOG_STYLE_MSGBOX,"Polizei Sirene","Möchtest du die Sirene dieses Fahrzeuges abbauen ?","Ja","Nein");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Fahrzeug!");
    }
    return 1;
    }


    der dialog


    if(dialogid== DIALOG_SIRENEAN)
    {
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    new vid = GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    sirene[vid] = CreateObject(18646,x,y,z,0,0,0,100);
    AttachObjectToVehicle(sirene[vid],vid,-0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
    sirenean[vid] = true;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene angebaut!");
    }
    }
    if(dialogid== DIALOG_SIRENEAUS)
    {
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    new vid = GetPlayerVehicleID(playerid);
    DestroyObject(sirene[vid]);
    sirenean[vid] =false;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene abgebaut!");
    }
    }



    //edit Dialog und define hinzugefügt


    und ingame steht dann du bist kein Staats Mitglied.


    pls help


    Mfg

    3 Mal editiert, zuletzt von 'VaniC<~ ()

  • Ich habs glaub ich so verstanden:


    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid] [pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid] [pLeader] == 3 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid] [pLeader] == 22)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Staatsfraktion!");
    return 1;
    }


    Er fragt ab ob die in der Fraktion sind und wenn ja soll der Text kommen.
    Musst du != machen glaube ich.

  • if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid] [pLeader] != 1 || PlayerInfo[playerid][pMember] != 3 || PlayerInfo[playerid] [pLeader] != 3 || PlayerInfo[playerid][pMember] != 22 || PlayerInfo[playerid] [pLeader] != 22)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Staatsfraktion!");
    return 1;
    }

  • if(xxx != xxx && xxx != xxx ...


    (e) GamerXIOS, bei dir müsste PInfo[playerid][pMember] 1 und 3 sein Oo


    Wie jetzt hö ?

  • habn anderes Prob.


    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(653) : error 021: symbol already defined: "ID"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2007) : warning 219: local variable "x2" shadows a variable at a preceding level
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2007) : warning 219: local variable "y2" shadows a variable at a preceding level
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2007) : warning 219: local variable "z2" shadows a variable at a preceding level
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2865) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2866) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2867) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(2868) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(3115) : warning 213: tag mismatch
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(3115) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(3149) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(3165) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(6645) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(6678) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(6703) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(6728) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12083) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12084) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12085) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12086) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12087) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12088) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12089) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12090) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12091) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12092) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12093) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12094) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12095) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(12096) : error 017: undefined symbol "CreateDynamicObject"


    Anderer Script
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(694) : error 021: symbol already defined: "ID"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(702) : error 021: symbol already defined: "ID"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(2290) : error 021: symbol already defined: "x2"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(2855) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(3381) : warning 213: tag mismatch
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(3381) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(3401) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(3417) : error 017: undefined symbol "DestroyDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12077) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12078) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12079) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12080) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12081) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12082) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12083) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12084) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12085) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12086) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12087) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12088) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12089) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12090) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12091) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12092) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12093) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12097) : error 017: undefined symbol "CreateDynamicObject"
    D:\GTA\GTA San Andreas\gamemodes\geheim.pwn(12098) : error 017: undefined symbol "CreateDynamicObject"


    //Edit: Kp why Klammer Fehler
    //Edit: habe gestern nichts geändert oder so
    //Edit: Egal bei Welchem Script immer die gleichen errors
    //Edit: Gibt es ein Neuen streamer für CreateDynamicObject?


    Habe vieles aus probiert
    kein Klammerfehler


    MFg

    5 Mal editiert, zuletzt von 'VaniC<~ ()

  • wie soll man helfen wenn du nur die errors postest?

  • mom zeilen kommen jezz


    ID, Float:NagelBandX, Float:NagelBandY, Float:NagelBandZ, nErstellt //653


    new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; //2007


    DestroyDynamicObject(d1);
    DestroyDynamicObject(d2);
    DestroyDynamicObject(d3);
    DestroyDynamicObject(d4); //2865-2868
    NagelBand[i][ID] = CreateDynamicObject(2899, x, y, z - 0.7, 0.0, 0.0, a - 90.0); //3115


    DestroyDynamicObject(NagelBand[i][ID]); //3149


    DestroyDynamicObject(NagelBand[i][ID]); //3165


    bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000); //6645


    bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);//6678


    bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);//6703
    bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);//6728


    CreateDynamicObject(984, 1774.9000244141, -1942.4000244141, 13.199999809265, 0, 0, 90);
    CreateDynamicObject(984, 1760.0999755859, -1942.5, 13.199999809265, 0, 0, 90);
    CreateDynamicObject(982, 1774.3000488281, -1922.5999755859, 13.199999809265, 0, 0, 0);
    CreateDynamicObject(982, 1774.3000488281, -1897, 13.199999809265, 0, 0, 0);
    CreateDynamicObject(982, 1787.1999511719, -1935.4000244141, 13.199999809265, 0, 0, 90);
    CreateDynamicObject(984, 1800, -1935.4000244141, 13.199999809265, 0, 0, 90);
    CreateDynamicObject(982, 1806.5, -1922.5999755859, 13.10000038147, 0, 0, 0);
    CreateDynamicObject(3666, 1807.5999755859, -1909.8000488281, 13.10000038147, 0, 0, 0);
    CreateDynamicObject(3666, 1808.6999511719, -1909.8000488281, 13.10000038147, 0, 0, 0);
    CreateDynamicObject(3666, 1809.8000488281, -1909.8000488281, 13.10000038147, 0, 0, 0);
    CreateDynamicObject(983, 1811.5, -1897.5999755859, 13.300000190735, 0, 0, 0);
    CreateDynamicObject(983, 1810.4000244141, -1881.5, 13.300000190735, 0, 0, 18);
    CreateDynamicObject(1257, 1828.8000488281, -1882.0999755859, 13.800000190735, 0, 0, 0);
    CreateDynamicObject(1231, 1774.9000244141, -1942.4000244141, 15.300000190735, 0, 0, 0);//12083-12096


    Mfg

    Einmal editiert, zuletzt von 'VaniC<~ ()

  • versuch das mit der Abfrage mal so
    da waren nämlich lerzeichen zwischen ;)
    if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pLeader] != 1 || PlayerInfo[playerid][pMember] != 3 || PlayerInfo[playerid][pLeader] != 3 || PlayerInfo[playerid][pMember] != 22 || PlayerInfo[playerid][pLeader] != 22)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Staatsfraktion!");
    return 1;
    }

  • mach mal statt CreateDynamikObject einfach CreateObject

  • @ Udo


    Ne dann streamt der die Objecte nimmer richtig habe


    CreateDynamicObject Streamer


    ehm es is egal beim neuen ob ich map eingefügt habe immer nur CreateDynamicObject obwohl es bugfrei wahr


    weiss wer wie der streamer heisst mit CreateDynamicObject??


    Mfg