SA-MP Forums Archive
String - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String (/showthread.php?tid=620887)



String - Micko123 - 04.11.2016

Can someone tell me why string[40]; isn't enough for this??
PHP код:
format(stringsizeof(string), "{6EF83C}(INFO) | {FFFFFF}You teleported to {6EF83C}%s."GetName(target)); 
When i put string[40] it only shows
PHP код:
(INFO) | You teleported 
And that's it...


Re: String - Banditul18 - 04.11.2016

http://www.lettercount.com/ Put your string here and count the characters, for me 77 it's a good size for that string+playername(24). And yes, the color in the string metters.


Re: String - Micko123 - 04.11.2016

So this will be counted as 8 charachters
PHP код:
{6EF83C
??


Re: String - Banditul18 - 04.11.2016

I wish to edit, but you post faster. Yes, it is.
difference between this
Код:
new string[6] = "Hello", string2[6];
	format(string2, sizeof(string2), "{37a4f5}%s", string);
	print(string2);
And this:
Код:
new string[6] = "Hello", string2[6];
	format(string2, sizeof(string2), "%s", string);
	print(string2);
Are this:
Код:
{37a4
Hello



Re: String - Micko123 - 04.11.2016

Thx bro
Repped