Anty TextDraw crashing in /news
#1

Hello, same as the thread. Who has a good idea to protect textdraw, when code is:

pawn Код:
CMD:news(playerid, params[])
{
/* new text[128];
if(sscanf.... */


TextDrawSetString(Text:TextDrawNews, text);
return 1;
}
And my problem is: when the player send in command /news a symbol like '~', this textdraw crashing all players who see this, how i can protect this, if the script find '~' the player see the message "There are a bad symbols here!" ? Ofc, i need to protect this for the '~n~', '~r~~' etc...
Reply


Messages In This Thread
Anty TextDraw crashing in /news - by Dodus - 25.09.2011, 10:27
Re: Anty TextDraw crashing in /news - by iJumbo - 25.09.2011, 10:30
Re: Anty TextDraw crashing in /news - by Dodus - 25.09.2011, 10:38
Re: Anty TextDraw crashing in /news - by iJumbo - 25.09.2011, 10:43
Re: Anty TextDraw crashing in /news - by Rachael - 25.09.2011, 10:47
Re: Anty TextDraw crashing in /news - by [MWR]Blood - 25.09.2011, 10:49
Re: Anty TextDraw crashing in /news - by Rachael - 25.09.2011, 11:04
Re: Anty TextDraw crashing in /news - by Dodus - 25.09.2011, 13:47

Forum Jump:


Users browsing this thread: 2 Guest(s)