03.03.2013, 01:46
Hola a todos tengo un cmd que hice para mi sistema de administraciуn pero no aparece el menъ.. Alguien me podrнa corregir que tengo mal. Si pongo todo el comando salen los tнpicos 26 errores.
Gracias !!
pawn Код:
#define RADIOADMIN 33333
////======================================================
dcmd_musica(playerid, params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 4) {
new string[1024], string1[512], string2[512];
format(string1, sizeof(string1), "Car Thief\nRedux\nFaint\nBreaking The Habit\nXFiles Theme\nRage Quit: Happy Wheels\nNew Divide\nLeslie RS3L Train Horn\nPass The Mic\nThe Move\nThree MC's One DJ\nShe's Crafty\nUnreal Superhero 3\nTriple Trouble\nAlive\nIn The End\nWaiting For The End\n");
format(string2, sizeof(string2), "The Catalyst\nIntergalactic-Original\nHold It, Now Hit It\nShake Your Rump\nIntergalactic-New\nSabotage\nSay It\nCh-Check It Out\nCrawlspace\nOh Word?\nTime To Build\nBrass Monkey\nCarol Of The Bells\nSiberian Sleigh Ride\nChristmas Canon Rock\nLights\nSomebody That I Used To Know");
format(string, sizeof(string), "%s%s", string1, string2);
ShowPlayerDialog(playerid, RADIOADMIN, DIALOG_STYLE_LIST, "Lista de musica del servidor", string, "Confirmar", "Cerrar");
return 1;
}
return 1;
}
//// ==========================================
dcmd(musica,6,cmdtext);
//// ==========================================
if(dialogid == RADIOADMIN)
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
}
if(listitem == 1)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/tomek-n-redux/download");
}
if(listitem == 2)
{
PlayAudioStreamForAll("http://users2.ml.mindenkilapja.hu/users/runemasters/uploads/linkin-park-faint_1_.mp3");
}
if(listitem == 3)
{
PlayAudioStreamForAll("http://rog.magma-net.pl/muza/Meteora/09-Breaking%20the%20habit%20.MP3");
}
if(listitem == 4)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-x-files-theme/download");
}
if(listitem == 5)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/rage-quit-happy-wheels/download");
}
if(listitem == 6)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/linkin-park-new-divide/download");
}
if(listitem == 7)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/leslie-rs3l/download");
}
if(listitem == 8)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/pass-the-mic/download");
}
if(listitem == 9)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-move/download");
}
if(listitem == 10)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-three-mcs-and-one/download");
}
if(listitem == 11)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-shes-crafty/download");
}
if(listitem == 12)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/keygen-music-unreal-superhero/download");
}
if(listitem == 13)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-triple-trouble-hd/download");
}
if(listitem == 14)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-alive-with-lyrics/download");
}
if(listitem == 15)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/linkin-park-in-the-end-1/download");
}
if(listitem == 16)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/waiting-for-the-end-official/download");
}
if(listitem == 17)
{
PlayAudioStreamForAll("http://mm-mobile.net/uploads/files/1288263559_linkin-park-the-catalyst.mp3");
}
if(listitem == 18)
{
PlayAudioStreamForAll("http://joeandrhonda.com/Intergalactic%20Original.mp3");
}
if(listitem == 19)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-beastie-boys-hold-it-now/download");
}
if(listitem == 20)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-shake-your-rump/download");
}
if(listitem == 21)
{
PlayAudioStreamForAll("http://biablo.blolol.com/random/beastieboys/10%20-%20Track%2010%20-%20Album.mp3");
}
if(listitem == 22)
{
PlayAudioStreamForAll("http://fuelfriendsmp3.com/listenup/Sabotage.mp3");
}
if(listitem == 23)
{
PlayAudioStreamForAll("http://moransa.com/music/Beastie%20Boys%20-%20Hot%20Sauce%20Committee%20Part%20Two/05-beastie_boys-say_it.mp3");
}
if(listitem == 24)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-ch-check-it-out/download");
}
if(listitem == 25)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Crawlspace.mp3");
}
if(listitem == 26)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Oh_Word.mp3");
}
if(listitem == 27)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Time_to_Build.mp3");
}
if(listitem == 28)
{
PlayAudioStreamForAll("http://moransa.com/music/Beastie%20Boys%20-%20Licensed%20to%20Ill/11%20Brass%20Monkey.mp3");
}
if(listitem == 29)
{
PlayAudioStreamForAll("http://stuff.mit.edu/afs/sipb/user/lnemzer/Public/Music/Trans-Siberian%20Orchestra%20feat.%20Metallica%20-%20Carol%20of%20the%20Bells.mp3");
}
if(listitem == 30)
{
PlayAudioStreamForAll("http://www.blahblahonline.com/muzak/12-trans_siberian_orchestra-siberian_sleigh_ride-fntx.mp3");
}
if(listitem == 31)
{
PlayAudioStreamForAll("http://www.cc.chu.edu.tw/~b9206043/ChristmasCanonRock.mp3");
}
if(listitem == 32)
{
PlayAudioStreamForAll("http://ahasbeenthatneverwas.files.wordpress.com/2010/08/ellie-goulding-lights-itunes-bonus-track.mp3");
}
if(listitem == 33)
{
PlayAudioStreamForAll("http://safetyfunandlearning.files.wordpress.com/2011/07/gotye-somebody-that-i-used-to-know-feat-kimbra.mp3");
}
}
return 1;
}
return 1;
}
/////=================================================
stock PlayAudioStreamForAll(url[])
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, url);
}
}
}