Jump to content
  • 0

pomoc Ako dokončit tento Dialog Hudby !


Fake

Dotaz

#include <a_samp>
 
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Vyrobil by [QxQ]Neonko");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/hudba", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,35,DIALOG_STYLE_LIST,"{0033FF}Mp3 List by [QxQ]Neonko","Polozka\nhudba hudba","Spustit","Vypnuť");
        return 1;
    }
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(dialogid)
        {
        case 35:
            {
            switch(listitem)
            {
                case 0: 
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Eminem - The Monster (feat. Rihanna)");
                    PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/...p6szto1.mp3#_=_");
                }
                case 1: 
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Rytmus ft. Separ,Momo - Skola repu !!.");
                    PlayAudioStreamForPlayer(playerid, "http://www.madfoxhud...FICIAL-CLIP.mp3");
                }
                case 2:
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Mafia Corner – Zuzulienka");
                    PlayAudioStreamForPlayer(playerid, "http://www.madfoxhud...-Zuzulienka.mp3");
                }
                case 3:
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Kali ft. Peter Pan - Uživám si to");
                    PlayAudioStreamForPlayer(playerid, "http://www.neonko-hu...ft.-Peter-Pan-Uživám-si-to.mp3");
                }
                case 4:
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Kali - Strateny ");
                    PlayAudioStreamForPlayer(playerid, "http://www.neonko-hu...li-Stratený.mp3");
                }
                case 5:
                {
                    SendClientMessage(playerid, 0x808000FF, "[MP3] Avicii Ft. Aloe Blacc - Wake Me Up");
                    PlayAudioStreamForPlayer(playerid, "http://s4.bmsr.in/s1.../Avicii - True [320]/01.%20Avicii%20Ft.%20Aloe%20Blacc%20-%20Wake%20Me%20Up%20[320].mp3");
                }
            }
            }
    }
    }
return 1;
}
#endif

keď to kompilujem do .amx suboru tak nenaskoči žiadna chyba , tak to nahram na server a keď dam prikaz /hudba tak napiše že prikaz neexistuje ...tak prosim poradte čo pridať a pod. !! za odpovede veľmi pekne ďakujem !! :d
Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...