Quote:
Originally Posted by LarzI
Remove the squared brackets in ShowPlayerDialog.
pawn Код:
stock ShowDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) { OnDialog[playerid]=1; ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); //1484 return 1; }
|
Thanks, worked.
Quote:
Originally Posted by LarzI
However, why don't you just use a macro instead?
pawn Код:
#define ShowDialog(%0,%1,%2,%3,%4,%5,%6) OnDialog[%0]=1;ShowPlayerDialog(%0,%1,%2,%3,%4,%5,%6)
|
This one didn't work. Having a bunch of errors with "unreachable code", "invalid expression" and so on if I use this definition.