Getting error while creating stock for ShowPlayerDialog
#3

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)