20.01.2013, 16:13
Remove the squared brackets in ShowPlayerDialog.
However, why don't you just use a macro instead?
pawn Код:
stock ShowDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
OnDialog[playerid]=1;
ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); //1484
return 1;
}
pawn Код:
#define ShowDialog(%0,%1,%2,%3,%4,%5,%6) OnDialog[%0]=1;ShowPlayerDialog(%0,%1,%2,%3,%4,%5,%6)