Anty TextDraw crashing in /news
#5

I think they mean strfind
https://sampwiki.blast.hk/wiki/Strfind

edit: just read your post properly.

You can use a loop to count the ~ in the string, and check it is finding an even number of them.
A better way to solve the problem would be to change the color input, ie the text the player enters to something like
[b] ( blue ) [r] ( red ) etc, and use strfind to make sure there are no ~ in the text.
Then you process the string to replace these sets of symbols with the correctly formatted textdraw symbols , and then send them to the server.
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: 1 Guest(s)