Next dialog box when i click OK -
P<3TS - 13.08.2012
Hello,
i want to make some thing like if a player type /commands then the first dialog box will come
pawn Код:
new string[1900];
strcat(string, "Message", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX, "Messages", string, "NEXT","Cancel");
And then if i press 'NEXT' then the next dialog box should come (cancel = close the dialog)
pawn Код:
new string[1900];
strcat(string, "Message", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
strcat(string, "\nMessage", 1900 );
ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX, "Messages", string, "OK","Cancel");
How to make ?
Re: Next dialog box when i click OK -
Jstylezzz - 13.08.2012
OnDialogResponse..
https://sampforum.blast.hk/showthread.php?tid=109610
here is a tutorial that will explain how to use OnDIalogResponse
Re: Next dialog box when i click OK -
P<3TS - 13.08.2012
i didnt understand that, can you show me a simple example?
Re: Next dialog box when i click OK -
P<3TS - 13.08.2012
anyone please help...
Re: Next dialog box when i click OK -
kickerbat - 13.08.2012
The dialog tutorial explains it all
, what don't you understand?
Re: Next dialog box when i click OK -
P<3TS - 13.08.2012
i didnt understand, just an example please
Re: Next dialog box when i click OK -
CROSS_Hunter - 13.08.2012
use used similar dialog ids just check the showplayerdialog(playerid, *id of the dialog* and see if its similar to another one
Re: Next dialog box when i click OK -
zT KiNgKoNg - 13.08.2012
you can request a code/script to be made on a section on the forums
Re: Next dialog box when i click OK -
P<3TS - 15.08.2012
By telling this can you please show me a code?
Re: Next dialog box when i click OK -
[MM]RoXoR[FS] - 15.08.2012
pawn Код:
new ondialog[MAX_PLAYERS];
//When they type /cmds
ondialog[playerid] = 0;
//under public OnDialogRespone
if(dialogid == 1)
{
if(response)//They pressed next
{
switch(ondialog[playerid])
{
case 0:
{
ondialog[playerid]++;
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"COmmands",/*Message*/,"NEXT","EXIT");
}
//and all other case
//for last dialog remove next button
}
}
}