30.07.2010, 16:05
Hay, I tried to make a /color dialog, the dialog works fine, but when i click one of the options nothing happens....
Yes I added the:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, invi);
}
case 1:
{
SetPlayerColor(playerid, blue);
}
case 2:
{
SetPlayerColor(playerid, red);
}
}
}
}
}
return 1;
}
pawn Код:
if(!strcmp(cmdtext, "/color", true))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What color you want?", "Invi \nBlue \nRed ", "Set", "Cancel");
}
return 1;
}