04.03.2011, 21:29
Hi.
I tried to create a /help dialog menu
and it kinda failed
i put this ondialogresponse
ofc after the register/login dialogs
here is the cmd
ok here is the problem.. the dialog shows up, and when I press Test 1, it works... but when I press Test 2, it shows Test 1 message? Pls help
I tried to create a /help dialog menu
and it kinda failed
i put this ondialogresponse
pawn Код:
if(dialogid == 4 && response)
{
SendClientMessage(playerid, White, "Test 1");
return 1;
}
if(dialogid == 4 && response)
{
SendClientMessage(playerid, White, "Test 2");
return 1;
}
return 1;
}
here is the cmd
pawn Код:
COMMAND:help(playerid, params[])
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Help", "Test 1\nTest 2", "Select", "Cancel");
return 1;
}