
COMMAND:musiclist(playerid, params[])
{
ShowPlayerDialog(playerid, 193060, DIALOG_STYLE_MSGBOX, "Music List", "1 Look at it tonight /n 2 Tacata /n 3 VOL 6 /n 4 Make it harder /n 5 Hardwell", "Confirm", "Cancel");
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 193060)
{
if(response)
{
new message[256+1];
if(listitem == 0)
{
format(message, 256, "INFO: type /music1-5 to listen to it,", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
}
if(listitem == 1)
{
format(message, 256, "INFO: type /music1-5 to listen to it.", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
return 1;
}
if(dialogid == 1232)
{
if(response)
{
Catagory[playerid]=DISABLE;
SetTimerEx("OnPlayerRequestClass", 1000, false, "i", playerid);
}
if(!response) SpawnPlayer(playerid);
}
if(IsSpawned[playerid]==ENABLE)
{
if(dialogid == DIALOG_ATTACH_INDEX_SELECTION)
{
if(response)
{
if(listitem == 0)
{
format(message, 256, "INFO: type /music1-5 to listen to it,", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
}
if(listitem == 1)
{
format(message, 256, "INFO: type /music1-5 to listen to it.", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
|
First thing, It's \n not /n, Replace that and try it
Second you have 5 options on the dialog, But you didn't do them.. pawn Код:
|
#pragma tabsize 0
new message[128];