03.09.2011, 13:47
Hey guys, im planning to make a kickass Dialog processor, but i have a problem...
HOWEVER this works:
This means there is something wrong in the define... not defining the "public" part.
pawn Код:
#define MAX_DIALOGS 50
new bool:DIALOG_USED[MAX_DIALOGS];
#define DIALOG_%0(%1,%2,%3,%4,%5,%6) forward DIALOG_%0(%1,%2,%3,%4,%5,%6); \
DIALOG_USED[%0] = true; \
public DIALOG_%0(%1,%2,%3,%4,%5,%6)
DIALOG_0(playerid, response, listitem, inputtext[]) //gets a warning: warning 203: symbol is never used: "DIALOG_0"
{
print("Test");
return 1;
}
//This function will be called later at OnDialogResponse...
pawn Код:
DIALOG_0(playerid, response, listitem, inputtext[]);
public DIALOG_0(playerid, response, listitem, inputtext[])
{
print("Test");
return 1;
}