[Hilfe] Habe Ein 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
  • if(dialogid == DIALOG_NEON)



    K:\Dokumente und Einstellungen\Tag\Desktop\Pivot 3\[RoS]RealLife of San Andreas [0.3e]\[RoS]RealLife of San Andreas [0.3e]\gamemodes\WoSNEW.pwn(46398) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    DANKE IM VORAUS !

  • if(dialogid == DIALOG_NEON)


    das ist die zeile aus das ist das ganze .


    if(dialogid == DIALOG_NEON)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "blue", CreateDynamicObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "blue1", CreateDynamicObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~b~ Blue ~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 1)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "green", CreateDynamicObject(18649,0,0,0,0,0,0));
    SetPVarInt(playerid, "green1", CreateDynamicObject(18649,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~g~Green ~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 2)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "yellow", CreateDynamicObject(18650,0,0,0,0,0,0));
    SetPVarInt(playerid, "yellow1", CreateDynamicObject(18650,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "yellow"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~y~Yellow~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 3)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "white", CreateDynamicObject(18652,0,0,0,0,0,0));
    SetPVarInt(playerid, "white1", CreateDynamicObject(18652,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "white"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~w~White~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 4)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "pink", CreateDynamicObject(18651,0,0,0,0,0,0));
    SetPVarInt(playerid, "pink1", CreateDynamicObject(18651,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~p~Pink~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 5)
    {
    DestroyObject(GetPVarInt(playerid, "blue"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "blue1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "green"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "green1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "yellow"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "yellow1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "white"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "white1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "pink"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "pink1"));
    DeletePVar(playerid, "neon");
    GameTextForPlayer(playerid, "~g~Das Neon wurde von deinem Auto entfernt",3500,5);
    GivePlayerMoney(playerid, -5000);


    }
    }
    return 1;


    }

  • So ist es richtig keine leertaste zwichen dialog id == und DIALOG_NEON LASSEN :D


    if(dialogid==DIALOG_NEON)

  • Mach es so if(dialogid == NEON) ohne Dialog, müsste dann gehen

    [tabmenu][tab=Ziele]100 Beiträge[x]
    150 Beiträge[x]
    200 Beiträge[x]
    250 Beiträge[x]
    300 Beiträge[x]
    350 Beiträge[x]
    400 Beiträge[x]
    450 Beiträge[x]
    500 Beiträge[ ]

  • hab ma den code vom ihm kopiert un compielt mit id==Dialog geht es bei mir nur anders nicht

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