26.06.2015, 01:40
I don't know how to config this cmd, when I use this cmd, It's doesn't have an music. Example I want to connect this cmd to website mp3.zing.vn, but I don't know where to edit the code.
I Think configure in here, Is it correct ? Please give me a tutorial to config this problem, Thank you
Quote:
CMD ![]() if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessageEx(playerid, COLOR_GRAD2, "Ban phai o trong xe moi co the su dung lenh nay de nghe nhac."); } ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_ LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nCustom Audio URL\nTurn radio off","Lua chon", "Dong"); return 1; } |
Quote:
else if(dialogid == GENRES) { if(response) { if(!GetPVarType(playerid, "pHTTPWait")) { format(string, sizeof(string), "%s/radio/radio.php?genre=%d", SAMP_WEB, (listitem+1)); SetPVarInt(playerid, "pSelectGenre", (listitem+1)); SetPVarInt(playerid, "pHTTPWait", 1); HTTP(playerid, HTTP_GET, string, "", "StationListHTTP"); } else { SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy"); } } else { ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_ LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close"); DeletePVar(playerid, "pSelectGenre"); } } |