14.07.2013, 11:08
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
//HERE I WANT TO CALL FUNCTION WITH SAME PARAMS (Same event only in other place)
OnDialog2(playerid, dialogid, response, listitem, inputtext[]);
return 1;
}
pawn Код:
//Function
forward OnDialog2(playerid, dialogid, response, listitem, inputtext[]);
public OnDialog2(playerid, dialogid, response, listitem, inputtext[])
{
//blabla
return 1;
}
Basically i want to duplicate callback, to make code look better, and easier to work with.