FrOsTy14 4 Odesláno: 3. Prosinec, 2014 Share Odesláno: 3. Prosinec, 2014 Dobrý den, chtěl bych se zeptat. Jak udělat tabulku např. Dubstep-když na to kliknu tak se otevře jako by další tabulka a tam budou písničky od dubstepu PoP-_________________________________________,,_____________________________ Rap-HipHop-__________________________________,,______________________________ atd... 2) Pomoc s tímhle jak mám udělat, abych tam měl víc znaku jak 500 na jednom řádku např tady: public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mp3-Rap", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 19841, DIALOG_STYLE_LIST, "{FF00FF}M{00FF00}P {FF0000}3", "{FF0000}atmo music - Polety\n{00FF00}Dope D.O.D.-Psychosis\n{FF0000}Dope DOD-Gatekeepers\n{00FF00}Ego_Ben Cristovao-12. MOLLY_MADEINCZECHOSLOVAKIA\n{FF0000}Ektor-GENERACE X\n{00FF00}Ektor-Jak jinak\n{FF0000}Ektor-Nohy v pěst\n{00FF00}Ektor-Proč\n{FF0000}KONTRAFAKT-JBMNT\n{FF0000}KONTRAFAKT-Podzemie\n{FF0000}MAAT ft. Ben Cristovao-Pod hladinou\n{FF0000}Rytmus-Sám\n{00FF00}Vypnout hudbu", "Zvolit", "Pryč"); return 1; } chci tam mít víc písniček. Předem děkuji za odpověď. FrOsTy14 Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 3. Prosinec, 2014 Share Odesláno: 3. Prosinec, 2014 http://wiki.sa-mp.com/wiki/Strcat Link to comment Share on other sites More sharing options...
0 FrOsTy14 4 Odesláno: 3. Prosinec, 2014 Author Share Odesláno: 3. Prosinec, 2014 http://wiki.sa-mp.com/wiki/Strcat Bohužel v tom se nevyznám. Link to comment Share on other sites More sharing options...
0 ProGamer 5 Odesláno: 3. Prosinec, 2014 Share Odesláno: 3. Prosinec, 2014 OnPlayerResponse Link to comment Share on other sites More sharing options...
0 Polisek Polismanovic 76 Odesláno: 3. Prosinec, 2014 Share Odesláno: 3. Prosinec, 2014 Umíš udělat Dialog ? Tak do toho dialogu dej další dialog z výběrem písniček Ukázka: ShowPlayerDialog(playerid,50, DIALOG_STYLE_LIST, "Sexy Song:","DubStep\nAtd..", "Okey", "Ukončit"); Do DialogResponse narveš if(dialogid == 50) { if(!response) return 1; switch(listitem) { case 0: { ShowPlayerDialog(playerid,51, DIALOG_STYLE_LIST, "Sexy Song:","Song1\nSong2 .....", "Okey", "Ukončit"); } } } Tím pádem máš další možnost a tam už dáš pisničky if(dialogid == 51) { if(!response) return 1; switch(listitem) { case 0: { PlayAudioStreamForPlayer(playerid, "http://ppolismanovic.sweb.cz/DJ-Wich-_-Rasco-(The-Untouchables)---Grizzly-(CZ_SK-rmx)-.mp3"); } } } A tím pádem máš hotovo Link to comment Share on other sites More sharing options...
0 FrOsTy14 4 Odesláno: 3. Prosinec, 2014 Author Share Odesláno: 3. Prosinec, 2014 Udělalo mi to todle. Když zmačknu Nic tak se mi zapne písnička.#include <a_samp> #pragma tabsize 0 public OnPlayerConnect(playerid) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mp3-Rap", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,50, DIALOG_STYLE_LIST, "Sexy Song:","DubStep\nAtd..", "Okey", "Ukončit"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) if(dialogid == 51) { if(!response) switch(listitem) { case 0: { PlayAudioStreamForPlayer(playerid, "http://ppolismanovic.sweb.cz/DJ-Wich-_-Rasco-(The-Untouchables)---Grizzly-(CZ_SK-rmx)-.mp3"); } } } Link to comment Share on other sites More sharing options...
Dotaz
FrOsTy14 4
Dobrý den, chtěl bych se zeptat. Jak udělat tabulku např.
Dubstep-když na to kliknu tak se otevře jako by další tabulka a tam budou písničky od dubstepu
PoP-_________________________________________,,_____________________________
Rap-HipHop-__________________________________,,______________________________
atd...
2) Pomoc s tímhle jak mám udělat, abych tam měl víc znaku jak 500 na jednom řádku např tady:
Link to comment
Share on other sites
5 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 accountSign in
Already have an account? Sign in here.
Sign In Now