Error bei Radio system

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

  • Function OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_RADIO)
    {
    if (response)
    {
    if(listitem == 0)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
    }
    if(listitem == 1)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/dsl.pls");
    }
    if(listitem == 2)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
    }
    if(listitem == 3)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls");
    }
    if(listitem == 4)
    {
    PlayAudioStreamForPlayer(playerid, "http://kterm.de/radio.pls");
    }
    if(listitem == 5)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.Clubtime.fm/dsl.pls");
    }
    if(listitem == 6)
    {
    StopAudioStreamForPlayer(playerid);
    }
    }
    return 1;
    }




    Und hier die error`s


    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(18618) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(18626) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(24366) : warning 219: local variable "x3" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(24366) : warning 219: local variable "y3" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(24366) : warning 219: local variable "z3" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : error 012: invalid function call, not a valid address
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : error 001: expected token: ";", but found ")"
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Dominik.DOMINIK-F0ABBF8\Desktop\samp\gamemodes\GHR.pwn(9) : 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.

  • [pwn]


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37


    Function OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_RADIO)
    {
    if (response)
    {
    if(listitem == 0)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
    }
    if(listitem == 1)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/dsl.pls");
    }
    if(listitem == 2)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
    }
    if(listitem == 3)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls");
    }
    if(listitem == 4)
    {
    PlayAudioStreamForPlayer(playerid, "http://kterm.de/radio.pls");
    }
    if(listitem == 5)
    {
    PlayAudioStreamForPlayer(playerid, "http://listen.Clubtime.fm/dsl.pls");
    }
    if(listitem == 6)
    {
    StopAudioStreamForPlayer(playerid);
    }
    }
    return 1;
    }
    }

  • if(dialogid == DIALOG_MP)//In deine ID Ändern
    {
    if(response == 0)
    {
    StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid,ROT,"MP3-Player ausgeschalten");
    return 1;
    }
    if(listitem == 0)
    {
    PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
    PlayAudioStreamForPlayer(playerid,"http://files.hard.fm/192.pls");
    SendClientMessage(playerid,GREEN,"Du hast Hard.fm eingeschalten.");
    return 1;
    }
    if(listitem == 1)
    {
    PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
    PlayAudioStreamForPlayer(playerid,"http://listen.technobase.fm/dsl.pls");
    SendClientMessage(playerid,GREEN,"Du hast technobase.fm eingeschalten.");
    return 1;
    }
    if(listitem == 2)
    {
    PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
    PlayAudioStreamForPlayer(playerid,"http://listen.coretime.fm/aacplus.pls");
    SendClientMessage(playerid,GREEN,"Du hast Coretime.fm eingeschalten.");
    return 1;
    }
    if(listitem == 3)
    {
    PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
    PlayAudioStreamForPlayer(playerid,"http://listen.hardbase.fm/aacplus.pls");
    SendClientMessage(playerid,GREEN,"Du hast Hardbase.fm eingeschalten.");
    return 1;
    }
    }