04.03.2011, 09:53
(
Последний раз редактировалось smeti; 04.03.2011 в 10:34.
)
I thought not: D
Example:
Good luck.
Example:
pawn Код:
new
soundid[] = { 1002, 1009, 1020 }; // etc..
#define DIALOGTITLE "{FFFFFF}Sound menu by {FFFFFF}[{FFDD18}Akord{FFFFFF}] :"
#define START_DIALOGID 6101
//-----
for(new i; i < sizeof (soundid); i ++);
{
ShowDialog(playerid, listitem);
}
ShowDialog(playerid, listitem)
{
new
str[128];
format(str, sizeof(str), "{FFDD18}Sound ID: {F6F6F6}%d", soundid[listitem]);
ShowPlayerDialog(playerid, START_DIALOGID + listitem, DIALOG_STYLE_MSGBOX, ""#DIALOGTITLE"", str, "Replay", "Exit");
PlayerPlaySound(playerid, soundid[listitem], 0.0, 0.0, 0.0);
}
//Note:
//This is just a tip!
//Not sure that you only need to copy.