21.08.2012, 19:49
(
Последний раз редактировалось kbalor; 22.08.2012 в 12:11.
)
Problem is that in Account Commands after I click Back its closes and nothing happen, It must go back to Player Commands dialog right?? As you can see //Next Button //Back Button the word else..
The only working is when I do /cd - it shows Basic Commands and that is right, If I click >> Then Player Commands will show and that's correct too, and last If I click next the Account Commands will show and that's correct. The only problem is the Back under Account Commands.
The only working is when I do /cd - it shows Basic Commands and that is right, If I click >> Then Player Commands will show and that's correct too, and last If I click next the Account Commands will show and that's correct. The only problem is the Back under Account Commands.
pawn Код:
CMD:cd(playerid, params[])
{
new str[512];
strcat(str, "Basic Commands:\n\n");
strcat(str, "/id -- Search player ID using Player part name\n");
strcat(str, "/pm -- Send private message to a player\n");
ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Close");
return 1;
}
pawn Код:
Under OnDialogResponse
if(dialogid == DIALOG_COMMANDS && response)
{
new str[512];
strcat(str, "Player Commands:\n\n");
strcat(str, "/stats -- Show specified player statistics\n");
strcat(str, "/kill -- Suicide\n");
ShowPlayerDialog(playerid, DIALOG_COMMANDS + 1, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Back");
return 1;
}
if(dialogid == DIALOG_COMMANDS + 1)
{
if(response) //Next Button
{
new str[256];
strcat(str, "Account Commands:\n\n");
strcat(str, "/register -- register for a new account\n");
strcat(str, "/login -- login your registered account\n");
ShowPlayerDialog(playerid, DIALOG_COMMANDS + 2, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Back");
}
else //Back Button
{
new str[512];
strcat(str, "Player Commands:\n\n");
strcat(str, "/stats -- Show specified player statistics\n");
ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Close");
}
}
return 1;
}