27.09.2015, 21:23
Add this somewhere in defines on top
and on top public OnDialogResponse
pawn Код:
#define InputTextFilter(%0) \
for(new i = strlen(%0)-1; i > -1; i--) \
if(%0[i] == '%') \
%0[i] = '#'
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
InputTextFilter(inputtext);
// your code
return 1;
}