Jump to content
  • 0

pomoc Dialog


Mivčo

Dotaz

Sojte ;)

Robim jednemu deb*lkovi script v ENG co pojde na rze 8 :d :d :d :d

Ked mi zaplatil 10€ nieje čo riešit :d :d

 

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

 

Dialog:

 

//======================================================================================================================================//
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(listitem == 5)
{
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);
}
}
return 1;
}

 

A ako spravim že KEd Stlačim na Radio aby ukazalo Dalšiu tabulku ked si chcem vybrat napriklad Europu 2

HELP ME

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

Nechceš mu vrátiť tích 10e ? :d

K veci:tam kde potrebuješ zobraziť další dialog normálne použi ShowPlayerDialog ako to máš u CMD:help

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

if(listitem == 5)

{

if(response == 1)

{

ShowPlayerDialog(playerid,ID,DIALOG_STYLE_LIST,"Radio",Europa2,....,"Ok","Koniec");

}

}

 

A skontroluj si zátvorky v OnDialogResponse vidím ti tam chybu...

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

if(listitem == 5)

{

if(response == 1)

{

ShowPlayerDialog(playerid,ID,DIALOG_STYLE_LIST,"Radio",Europa2,....,"Ok","Koniec");

}

}

 

A skontroluj si zátvorky v OnDialogResponse vidím ti tam chybu...

 

Diki aspoň niekto

OK LOCK ;)

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