Pomoc

Započeo SEMA, April 07, 2013, 19:51:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:nez ni ja :P
Detaljan opis problema:hocu da posaatvim radio ali nece ja stavim stranice ali opet nece moze neko oskriptat radio dj balkan i jos neki :D
Dio skripte:                                          /* MN Radio by MarkoN */

// inkludovi
#include <a_samp>

// Define filterscripte
#define FILTERSCRIPT

// Dialog ID
#define RADIO (101)
#define POP (102)
#define ROCK (103)

// Boje
#define ROYALBLUE       0x4169E1FF

// Pocetak
public OnFilterScriptInit()
{
   print("\n--------------------------");
   print("[MN] Radio - Pokrenut");
   print("--------------------------\n");
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp("/radio", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "{FFFF00}MN Radio - selektuj opciju", "{F0F0F0}Pop\n{00CC00}Rock\n{FFCC00}Zaustavi Radio", "Ok", "Izadji");
      return 1;
   }
   return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == RADIO && response)
   {
      printf("RADIO");
       switch(listitem)
       {
           case 0:
           {
                ShowPlayerDialog(playerid, POP, DIALOG_STYLE_LIST, "Pop", "Soma FM\nWewl", "Pusti", "Izadji");
           }
           case 1:
           {
               ShowPlayerDialog(playerid, ROCK, DIALOG_STYLE_LIST, "Rock", "Waze\n100XR\nHamilton Radio", "Pusti", "Izadji");
           }
           case 2:
           {
           StopAudioStreamForPlayer(playerid);
           SendClientMessage(playerid, ROYALBLUE, "Radio Zaustavljen!");
           }
       }
   }
   if(dialogid == POP && response)
   {
       printf("POP");
       switch(listitem)
       {
       case 0:
           {
            PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
         }
      case 1:
          {
          PlayAudioStreamForPlayer(playerid, "http://peace.str3am.com:6030/listen.pls");
          }
      }
   }
   if(dialogid == ROCK && response)
   {
      printf("ROCK");
       switch(listitem)
       {
       case 0:
           {
          PlayAudioStreamForPlayer(playerid, "http://www.wazee.org/64aac.m3u");
         }
        case 1:
           {
          PlayAudioStreamForPlayer(playerid, "http://www.navidiku.rs/radio-stanice/balkan-dj-radio");
         }
      case 2:
          {
         PlayAudioStreamForPlayer(playerid, "http://radiobrod.cz/RadioBrod-32kbps.pls");
         }
        case 3:
          {
          PlayAudioStreamForPlayer(playerid, "http://balkan.dj/balkan.dj.wvx");
          }
      }
   }
   return 1;
   }
   
Neke slike/video za lakse dobivanje pomoci(neobavezno)://