Jump to content
  • 0

pomoc Dialog


Mivčo

Dotaz

Sojte mam Problem lebo mi neukazuje ako to ma byt

Otovrim si /help da vyberiem si Radio a ked na Radio kliknem tak mi to neukaže :(

Help me?

 

//======================================================================================================================================//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
new Help[999];
strcat(Help, "\n{ffffff}Welcome to Country fair 8.");
strcat(Help, "\n{ffffff}Office are in LV between the pyramid and ammo (one red house on the map)..");
strcat(Help, "\n{ffffff}Employment in a given profession, you will receive experience with payment.");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{ffff00}HELP",Help,"Ok","Cancel");
}
}
}
//======================================================================================================================================//
if(listitem == 1)
{
new Commands[999];
strcat(Commands, "\n{ffffff}Commands");
strcat(Commands, "\n{ffffff}");
strcat(Commands, "\n{ffffff}");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{ffff00}Commands",Commands,"Ok","Cancel");
}
//======================================================================================================================================//
if(listitem == 2)
{
new Warpy[999];
strcat(Warpy, "\n{ffffff}Warpy");
strcat(Warpy, "\n{ffffff}Warpy1: /ostrov /draglv /dragls /dragsf /driftlv /driftsf /stunt 1-5 /stadion");
strcat(Warpy, "\n{ffffff}Warpy2: /ls /sf /lv /grove /ballas /priehrada /chiliand /mestecko.");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{ffff00}HELP",Warpy,"Ok","Cancel");
}
//======================================================================================================================================//
if(listitem == 3)
{
}
//======================================================================================================================================//
if(listitem == 4)
{
new Info[999];
strcat(Info, "\n{ffffff}Info");
strcat(Info, "\n{ffffff}");
strcat(Info, "\n{ffffff}");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{ffff00}Info",Info,"Ok","Cancel");
}
//======================================================================================================================================//
if(dialogid == 2)
{
if(response)
{
if(listitem == 5)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Radio","Europa2 \nFunRadio \nEvropa \nFrekvence", "OK", "Zavrit");
}
}
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,0xFFFF00C8,"Europa2");
PlayAudioStreamForPlayer(playerid,"http://ice2.europa2.sk/fm-europa2sk-128");
}
case 1:
{
SendClientMessage(playerid,0xFFFF00C8,"FunRadio");
PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3");
}
case 2:
{
SendClientMessage(playerid,0xFFFF00C8,"Evropa2");
PlayAudioStreamForPlayer(playerid,"http://icecast3.play.cz/evropa2-128.mp3");
}
case 3:
{
SendClientMessage(playerid,0xFFFF00C8,"Frekvence1");
PlayAudioStreamForPlayer(playerid,"http://icecast6.play.cz/frekvence1-128.mp3");
}
case 4:StopAudioStreamForPlayer(playerid);
}
}

 

Help me?

Link to comment
Share on other sites

19 odpovědí na tuto otázku

Recommended Posts

  • 0
CMD:help(playerid,params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Realna Zeme 8.0", "Help \nCommands \nRules \nWarpy \nInfo \nRadio", "OK", "Zavrit");
return 1;
}

Link to comment
Share on other sites

  • 0

no a toto co ked to dam tak mi ukaže na Europe2 Help alebo nič :(

 

if(listitem == 5)
{
if(response)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Radio","Europa2 \nFunRadio \nEvropa \nFrekvence", "OK", "Zavrit");
}
}

Link to comment
Share on other sites

  • 0

if(dialogid == 2)
{
if(response)
{
if(listitem == 5)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Radio","Europa2 \nFunRadio \nEvropa \nFrekvence", "OK", "Zavrit");
}
}

 

mam to takto a nefunguje mi to ;(

Link to comment
Share on other sites

  • 0

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if(dialogid == 1)

{

if(response)

{

if(listitem == 0)

{ // otvoriš listitem dialogu id 1

new Help[999];

strcat(Help, "\n{ffffff}Welcome to Country fair 8.");

strcat(Help, "\n{ffffff}Office are in LV between the pyramid and ammo (one red house on the map)..");

strcat(Help, "\n{ffffff}Employment in a given profession, you will receive experience with payment.");

ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{ffff00}HELP",Help,"Ok","Cancel");

} // zavrieš liostitem dialogu id 1

} // zavrieš response dialogu id 1

} // zavrieš dialog id 1

//============================================================================//

if(listitem == 1) // dafuq? otvoriš listitem kotreho dialogu ? :d demence more

Link to comment
Share on other sites

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...