Brauche bitte 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
  • //----------------------------PREISLISTE----------------------------------------
    if (strcmp( cmdtext,"/carp", true )==0)
    {
    SendClientMessage(playerid, COLOR_BROWN,"--------------------Preisliste--------------------");
    SendClientMessage(playerid, COLOR_BROWN,"Admiral: 76.000 Bandito: 42.000
    SendClientMessage(playerid, COLOR_BROWN,"Alpha: 160.000 Banshee: 321.000
    SendClientMessage(playerid, COLOR_BROWN,"BF-Injection: 80.000 Blade: 86.000
    SendClientMessage(playerid, COLOR_BROWN,"Blista Compact: 65.000 Bloodring Banger: 31.000
    SendClientMessage(playerid, COLOR_BROWN,"Bravura: 50.000 Broadway: 61.000
    SendClientMessage(playerid, COLOR_BROWN,"Bullet: 365.000 Buccaneer: 41.000
    SendClientMessage(playerid, COLOR_BROWN,"Buffalo: 66.000 Cadrona: 51.000
    SendClientMessage(playerid, COLOR_BROWN,"Cheetah: 212.000 Clover: 31.000
    SendClientMessage(playerid, COLOR_BROWN,"Club: 47.000 Comet: 51.000
    SendClientMessage(playerid, COLOR_BROWN,"Elegant: 115.000 Elegy: 232.000
    SendClientMessage(playerid, COLOR_BROWN,"Emperor: 67.000 Esperanto: 71.000
    SendClientMessage(playerid, COLOR_BROWN,"Euros: 177.000 Fetzler: 96.000
    SendClientMessage(playerid, COLOR_BROWN,"Flash: 57.000 Fortune: 52.000
    SendClientMessage(playerid, COLOR_BROWN,"Glendale: 37.000 Greenwood: 49.500
    SendClientMessage(playerid, COLOR_BROWN,"Hermes: 69.000 Hotknife: 76.000
    SendClientMessage(playerid, COLOR_BROWN,"Hotring Racer: 175.000 Huntley: 69.000
    SendClientMessage(playerid, COLOR_BROWN,"Hustler: 81.000 Infernus: 381.000");
    return 1;
    }
    if (strcmp( cmdtext,"/carp2", true )==0)
    {
    SendClientMessage(playerid, COLOR_BROWN,"-------------------Preisliste 2-------------------
    SendClientMessage(playerid, COLOR_BROWN,"Intruder: 58.000 Jester: 92.000
    SendClientMessage(playerid, COLOR_BROWN,"Manana: 66.000 Merit: 71.000
    SendClientMessage(playerid, COLOR_BROWN,"Mesa: 66.000 Moonbeam: 38.000
    SendClientMessage(playerid, COLOR_BROWN,"Nebula: 44.000 Oceanic: 42.000
    SendClientMessage(playerid, COLOR_BROWN,"Patriot: 66.000 Perenial: 36.000
    SendClientMessage(playerid, COLOR_BROWN,"Phoenix: 77.000 Picador: 57.000
    SendClientMessage(playerid, COLOR_BROWN,"Premier: 63.000 Previon: 57.000
    SendClientMessage(playerid, COLOR_BROWN,"Primo: 52.000 Regina: 37.000
    SendClientMessage(playerid, COLOR_BROWN,"Sabre: 39.000 Savanna: 93.000
    SendClientMessage(playerid, COLOR_BROWN,"Sentinel: 66.000 Slamvan: 77.000
    SendClientMessage(playerid, COLOR_BROWN,"Stallion: 56.000 Stratum: 83.000
    SendClientMessage(playerid, COLOR_BROWN,"Stretchlimo: 325.000 Sultan: 65.000
    SendClientMessage(playerid, COLOR_BROWN,"Sunrise: 66.000 Super GT: 202.000
    SendClientMessage(playerid, COLOR_BROWN,"Tahoma: 44.000 Tampa: 47.000
    SendClientMessage(playerid, COLOR_BROWN,"Tornado: 55.000 Turismo: 325.000
    SendClientMessage(playerid, COLOR_BROWN,"Uranus: 105.000 Vincent: 67.000
    SendClientMessage(playerid, COLOR_BROWN,"Vigro: 46.000 Voodoo: 57.000
    SendClientMessage(playerid, COLOR_BROWN,"Willard : 54.000 Windsor: 97.000
    SendClientMessage(playerid, COLOR_BROWN,"ZR - 350: 87.000");
    return 1;
    }



    was mach ich hier falsch



    hier die errors:
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(179) : warning 225: unreachable code
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(182) : error 037: invalid string (possibly non-terminated string)
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(182) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(182) : error 001: expected token: ";", but found "-label-"
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(182 -- 183) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(183) : error 001: expected token: ";", but found "-identifier-"
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\Windows SAMP server\gamemodes\GM1.pwn(183) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

  • if (strcmp( cmdtext,"/carp", true )==0)
    {
    SendClientMessage(playerid, COLOR_BROWN,"--------------------Preisliste--------------------");
    SendClientMessage(playerid, COLOR_BROWN,"Admiral: 76.000 Bandito: 42.000");
    SendClientMessage(playerid, COLOR_BROWN,"Alpha: 160.000 Banshee: 321.000");
    SendClientMessage(playerid, COLOR_BROWN,"BF-Injection: 80.000 Blade: 86.000");
    SendClientMessage(playerid, COLOR_BROWN,"Blista Compact: 65.000 Bloodring Banger: 31.000");
    SendClientMessage(playerid, COLOR_BROWN,"Bravura: 50.000 Broadway: 61.000");
    SendClientMessage(playerid, COLOR_BROWN,"Bullet: 365.000 Buccaneer: 41.000");
    SendClientMessage(playerid, COLOR_BROWN,"Buffalo: 66.000 Cadrona: 51.000");
    SendClientMessage(playerid, COLOR_BROWN,"Cheetah: 212.000 Clover: 31.000");
    SendClientMessage(playerid, COLOR_BROWN,"Club: 47.000 Comet: 51.000");
    SendClientMessage(playerid, COLOR_BROWN,"Elegant: 115.000 Elegy: 232.000");
    SendClientMessage(playerid, COLOR_BROWN,"Emperor: 67.000 Esperanto: 71.000");
    SendClientMessage(playerid, COLOR_BROWN,"Euros: 177.000 Fetzler: 96.000");
    SendClientMessage(playerid, COLOR_BROWN,"Flash: 57.000 Fortune: 52.000");
    SendClientMessage(playerid, COLOR_BROWN,"Glendale: 37.000 Greenwood: 49.500");
    SendClientMessage(playerid, COLOR_BROWN,"Hermes: 69.000 Hotknife: 76.000");
    SendClientMessage(playerid, COLOR_BROWN,"Hotring Racer: 175.000 Huntley: 69.000");
    SendClientMessage(playerid, COLOR_BROWN,"Hustler: 81.000 Infernus: 381.000");
    return 1;
    }
    if (strcmp( cmdtext,"/carp2", true )==0)
    {
    SendClientMessage(playerid, COLOR_BROWN,"-------------------Preisliste 2-------------------");
    SendClientMessage(playerid, COLOR_BROWN,"Intruder: 58.000 Jester: 92.000");
    SendClientMessage(playerid, COLOR_BROWN,"Manana: 66.000 Merit: 71.000");
    SendClientMessage(playerid, COLOR_BROWN,"Mesa: 66.000 Moonbeam: 38.000");
    SendClientMessage(playerid, COLOR_BROWN,"Nebula: 44.000 Oceanic: 42.000");
    SendClientMessage(playerid, COLOR_BROWN,"Patriot: 66.000 Perenial: 36.000");
    SendClientMessage(playerid, COLOR_BROWN,"Phoenix: 77.000 Picador: 57.000");
    SendClientMessage(playerid, COLOR_BROWN,"Premier: 63.000 Previon: 57.000");
    SendClientMessage(playerid, COLOR_BROWN,"Primo: 52.000 Regina: 37.000");
    SendClientMessage(playerid, COLOR_BROWN,"Sabre: 39.000 Savanna: 93.000");
    SendClientMessage(playerid, COLOR_BROWN,"Sentinel: 66.000 Slamvan: 77.000");
    SendClientMessage(playerid, COLOR_BROWN,"Stallion: 56.000 Stratum: 83.000");
    SendClientMessage(playerid, COLOR_BROWN,"Stretchlimo: 325.000 Sultan: 65.000");
    SendClientMessage(playerid, COLOR_BROWN,"Sunrise: 66.000 Super GT: 202.000");
    SendClientMessage(playerid, COLOR_BROWN,"Tahoma: 44.000 Tampa: 47.000");
    SendClientMessage(playerid, COLOR_BROWN,"Tornado: 55.000 Turismo: 325.000");
    SendClientMessage(playerid, COLOR_BROWN,"Uranus: 105.000 Vincent: 67.000");
    SendClientMessage(playerid, COLOR_BROWN,"Vigro: 46.000 Voodoo: 57.000");
    SendClientMessage(playerid, COLOR_BROWN,"Willard : 54.000 Windsor: 97.000");
    SendClientMessage(playerid, COLOR_BROWN,"ZR - 350: 87.000");
    return 1;
    }
    so ist es richtig, du hattest bei jeder SendClientMessage zum schluss das "); vergessen

  • Ich würde das aber nicht in den Chat senden, sondern ein Menü aufbauen dass bei Auswahl des Menüpunkts auch gleich das Auto kauft..

    Intel Xeon W3690 Hexacore @ 4.5 GHz - 48GB Triple Channel DDR3 - GeForce RTX 2070 Super - Asus P6T Deluxe V1 @ P6T WS Pro BIOS

    Mainboard 12 Jahre, CPU 10 Jahre alt - old but gold!