05.06.2016, 23:53
Example:
https://www.youtube.com/watch?v=RJ6F17EFqYc
You can fix it simple by checking the inputtext before using it with this stock :
Now you're gonna use this checking in all DIALOG_STYLE_INPUT dialogs.
Example of usage:
https://www.youtube.com/watch?v=RJ6F17EFqYc
You can fix it simple by checking the inputtext before using it with this stock :
pawn Code:
stock CheckDialogBug(message[])
{
new message_length = strlen(message);
for(new i; i < message_length; i++)
{
if(message[i] == '%')
{
return 1;
}
}
return 0;
}
Example of usage:
Code:
if(CheckDialogBug(inputtext)) return SendClientMessage(playerid, 0, "{FFFFFF}You can't use '%' in strings.");