PDA

View Full Version : [ZCMD]Help With Some Dialog Respone


donhu789
21/09/2013, 02:24 PM
CMD:cmds(playerid)
{
new PT[2900];
strcat(PT, "{FF0000}Server Commands \n", sizeof(PT));
strcat(PT, "/ranks |/myrank |/rules|/topscores |/richlist \n", sizeof(PT));
strcat(PT, "/help | /pm | /r [text] | /ep | /anims | /laseron \n", sizeof(PT));
strcat(PT, "/lasercol | /radiohelp | /order [text] | /groupcmds \n", sizeof(PT));
strcat(PT, "/radiohelp | /order [text] | /spree |/credits |/acredits \n", sizeof(PT));
strcat(PT, "/moderators | /admins | /cmds | /st | /sc | /kill | /objective | /teams \n", sizeof(PT));
strcat(PT, "this Is Our tempory List Of Commands We Will Update More Soon!. \n", sizeof(PT));
strcat(PT, "Thanks For View Our Commands List Server will Update List Evry Time ! \n", sizeof(PT));

ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands -|_________", PT, "Next", "Cancel");
return 1;
}





Can Anyone Show my How I make THis Commands Thing When i preass next and it show another Page Of commands ?

knackworst
21/09/2013, 02:43 PM
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{
//show the next list

response != 0 does the trick, it menas the player clicked 'next'

donhu789
21/09/2013, 02:46 PM
And What I do more to Show the Next Page :\ can you just do this please :\

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{
Example !!!!

knackworst
21/09/2013, 02:48 PM
And What I do more to Show the Next Page :\ can you just do this please :\

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{
Example !!!!

Sure :)


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{

new PT[2900];
strcat(PT, "{FF0000}Server Commands 2 \n", sizeof(PT));
strcat(PT, "Here you type your commands again \n", sizeof(PT));


ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands Page 2-|_________", PT, "Next", "Cancel");

donhu789
21/09/2013, 03:14 PM
knackworst

Can You help A one More thing ?

I just want single More help If I want to Add more What I do and Can i stop untill 5 page ?

knackworst
21/09/2013, 03:28 PM
Just copy the strcat(PT, ... line and then type your text in it

donhu789
21/09/2013, 03:40 PM
No Is not i mean I add More Pages For mine Commands

knackworst
21/09/2013, 04:44 PM
if(dialogid == 6 && response != 0)
{

new PT[2900];
strcat(PT, "{FF0000}Server Commands 2 \n", sizeof(PT));
strcat(PT, "Here you type your commands again \n", sizeof(PT));


ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands Page 2-|_________", PT, "Next", "Cancel");

Keep doing this, but change the numbers: dialogid == ... and ShowPlayerDialog(playerid, ...) each time you add a new one