03.09.2011, 14:10
Quote:
|
Yes, the difference is that ZCMD uses ":", not "_" - it's a small but important different as colons aren't valid identifier characters, whereas underscores are.
|
pawn Код:
#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[])
{
print("Test");
return 1;
}
//And this is how i call the function at OnDialogResponse:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(DIALOG_USED[dialogid] == true)
{
new function[32];format(function,sizeof function,"DIALOG:%i",dialogid);
return CallLocalFunction(function,"iiis",playerid,response,listitem,inputtext);
}
return CallLocalFunction("SD_OnDialogResponse","iiiis",playerid,dialogid,response,listitem,inputtext);
}
//Learnt this from you before you released Y_Hooks =P
#if defined _ALS_OnDialogResponse
#undef OnDialogResponse
#else
#define _ALS_OnDialogResponse
#endif
#define OnDialogResponse SD_OnDialogResponse
forward SD_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
"D:\Projecten\sampserver\filterscripts\test.pwn(54 ) : error 020: invalid symbol name ""
D:\Projecten\sampserver\filterscripts\test.pwn(57) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.


