Getting error while creating stock for ShowPlayerDialog
#2

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;
}
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)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)