Textdraw letter problem ("\")>this letter is making errors
#1

So I built a textdraw with the iPLEOMAX's Filterscript, the thing is that textdraw is the signature of our community and there are 12 lines that make the signature. So the letter "\" is the line that makes the signature full but when I type it in textdraw text errors appear:
Код:
../gamemodes/OnGameMode.pwn(1193) : error 037: invalid string (possibly non-terminated string)
../gamemodes/OnGameMode.pwn(1193) : warning 215: expression has no effect
../gamemodes/OnGameMode.pwn(1193) : error 001: expected token: ";", but found ")"
../gamemodes/OnGameMode.pwn(1193) : error 029: invalid expression, assumed zero
../gamemodes/OnGameMode.pwn(1193) : fatal error 107: too many error messages on one line
That exact textdraw an that line (Line: 1193)
Код:
        Logo[2] = TextDrawCreate(44.000000, 309.750000, "\");
	TextDrawLetterSize(Logo[2], 0.449500, 1.005000);
	TextDrawAlignment(Logo[2], 1);
	TextDrawColor(Logo[2], -2147450625);
	TextDrawSetShadow(Logo[2], 0);
	TextDrawSetOutline(Logo[2], 0);
	TextDrawBackgroundColor(Logo[2], 51);
	TextDrawFont(Logo[2], 1);
	TextDrawSetProportional(Logo[2], 1);
So is there a way in which I could just type "\" this letter in the textdraw text without any additional letters ?
Reply
#2

If you want backslash character, then you'll have to escape it:
pawn Код:
Logo[2] = TextDrawCreate(44.000000, 309.750000, "\\");
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If you want backslash character, then you'll have to escape it:
pawn Код:
Logo[2] = TextDrawCreate(44.000000, 309.750000, "\\");
Yeah finally It worked, I tried so many things huh... thanks mate deserved rep+ for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)