Brauche Hilfe

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
  • Ich Habe Errors
    Aber weiß nicht warum
    hier ist der Code


    if(dialogid == DIALOG_SUPCAR)
    {
    if(listitem == 0)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new car;
    car = strval(tmp);
    new supcar = CreateVehicle(560, X,Y,Z,0.0,149,149, 60000);
    SetVehicleNumberPlate(supcar, "ADMIN");
    PutPlayerInVehicle(playerid, supcar, 0);
    CreatedCars[CreatedCar] = supcar;
    CreatedCar++;
    Gas[supcar] = GetGasMax(car);
    new Supcar[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(Supcar, sizeof(Supcar), "SupportMobil von %s.",sendername);
    Supportermobil=Create3DTextLabel( Supcar,0xFF8C00FF,0.0,0.0,0.0,50.0,0,4);
    Attach3DTextLabelToVehicle(Supportermobil,supcar,0.0,0.0,0.2);
    SendClientMessage(playerid, 0xFF8C00FF, "Du hast das Supportercar erfolgreich erstellt zum löschen /delsupcar!");
    HatSupmobil[playerid] = 1;
    return 1;
    }
    if(listitem == 1)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new car;
    car = strval(tmp);
    new supcar = CreateVehicle(411, X,Y,Z,0.0,149,149, 60000);
    SetVehicleNumberPlate(supcar, "ADMIN");
    PutPlayerInVehicle(playerid, supcar, 0);
    CreatedCars[CreatedCar] = supcar;
    CreatedCar++;
    Gas[supcar] = GetGasMax(car);
    new Supcar[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(Supcar, sizeof(Supcar), "SupportMobil von %s.",sendername);
    Supportermobil=Create3DTextLabel( Supcar,0xFF8C00FF,0.0,0.0,0.0,50.0,0,4);
    Attach3DTextLabelToVehicle(Supportermobil,supcar,0.0,0.0,0.2);
    SendClientMessage(playerid, 0xFF8C00FF, "Du hast das Supportercar erfolgreich erstellt zum löschen /delsupcar!");
    HatSupmobil[playerid] = 1;
    return 1;
    }
    if(listitem == 2)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new car;
    car = strval(tmp);
    new supcar = CreateVehicle(541, X,Y,Z,0.0,149,149, 60000);
    SetVehicleNumberPlate(supcar, "ADMIN");
    PutPlayerInVehicle(playerid, supcar, 0);
    CreatedCars[CreatedCar] = supcar;
    CreatedCar++;
    Gas[supcar] = GetGasMax(car);
    new Supcar[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(Supcar, sizeof(Supcar), "SupportMobil von %s.",sendername);
    Supportermobil=Create3DTextLabel( Supcar,0xFF8C00FF,0.0,0.0,0.0,50.0,0,4);
    Attach3DTextLabelToVehicle(Supportermobil,supcar,0.0,0.0,0.2);
    SendClientMessage(playerid, 0xFF8C00FF, "Du hast das Supportercar erfolgreich erstellt zum löschen /delsupcar!");
    HatSupmobil[playerid] = 1;
    return 1;
    }
    if(listitem == 3)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new car;
    car = strval(tmp);
    new supcar = CreateVehicle(458, X,Y,Z,0.0,149,149, 60000);
    SetVehicleNumberPlate(supcar, "ADMIN");
    PutPlayerInVehicle(playerid, supcar, 0);
    CreatedCars[CreatedCar] = supcar;
    CreatedCar++;
    Gas[supcar] = GetGasMax(car);
    new Supcar[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(Supcar, sizeof(Supcar), "SupportMobil von %s.",sendername);
    Supportermobil=Create3DTextLabel( Supcar,0xFF8C00FF,0.0,0.0,0.0,50.0,0,4);
    Attach3DTextLabelToVehicle(Supportermobil,supcar,0.0,0.0,0.2);
    SendClientMessage(playerid, 0xFF8C00FF, "Du hast das Supportercar erfolgreich erstellt zum löschen /delsupcar!");
    HatSupmobil[playerid] = 1;
    return 1;
    }
    if(response == 0)
    {

    }
    if(response == 1)
    {
    return 1;
    }
    }



    und dann hier die errors


    C:\Users\michel\Desktop\GTA SAN ANDREAS\Selfmade\gamemodes\NGR (2).pwn(51524) : error 017: undefined symbol "tmp"
    C:\Users\michel\Desktop\GTA SAN ANDREAS\Selfmade\gamemodes\NGR (2).pwn(51546) : error 017: undefined symbol "tmp"
    C:\Users\michel\Desktop\GTA SAN ANDREAS\Selfmade\gamemodes\NGR (2).pwn(51568) : error 017: undefined symbol "tmp"
    C:\Users\michel\Desktop\GTA SAN ANDREAS\Selfmade\gamemodes\NGR (2).pwn(51590) : error 017: undefined symbol "tmp"
    C:\Users\michel\Desktop\GTA SAN ANDREAS\Selfmade\gamemodes\NGR (2).pwn(59324) : warning 203: symbol is never used: "bf"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

  • Auf Deutsch: tmp wurde nicht deklariert..


    Zitat


    error 017: undefined symbol "tmp"

  • Den Fehler hättest du schon bemerken müssen ;D
    Aber bekommste schon hin mit deinem Selfmade ;)

  • Gute Sache :)
    Denk aber alles gut durch, ich freu mich auf deinen Server Start, ich denke mal das bekommst du hin :)