19.09.2009, 04:10
pawn Code:
stock CreatePlayerDialog(playerid, style, caption[], info[], button1[], button2[])
{
new
dialogid;
dialogid = getproperty(0, "dialogs");
ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
setproperty(0, "dialogs", dialogid+1);
return dialogid;
}
pawn Code:
new dialog = CreatePlayerDialog(playerid, 0, "caption", "info", "button1", "button2")