SA-MP Forums Archive
String token in a 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 token in a string? (/showthread.php?tid=617716)



String token in a string? - Maheerali - 25.09.2016

Код:
new str[128];
new str2[20] ="Mytd";
format(str,128,"TextDrawCreate(240.00,120.00," "%s" ");",str2);



Re: String token in a string? - Shinja - 25.09.2016

TextDrawSetString


Re: String token in a string? - Maheerali - 25.09.2016

Quote:
Originally Posted by Shinja
Посмотреть сообщение
TextDrawSetString
how to have string token in string?


Re: String token in a string? - Kaliber - 25.09.2016

Like this:

PHP код:
new str[128];
new 
str2[20] ="Mytd";
format(str,128,"%s",str2);
TextDrawCreate(240.00,120.00str); 



Re: String token in a string? - Maheerali - 26.09.2016

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Like this:

PHP код:
new str[128];
new 
str2[20] ="Mytd";
format(str,128,"%s",str2);
TextDrawCreate(240.00,120.00str); 
Bro I am not creating a textdraw. I am trying to create Textdraw Editor. On export we need string token in TextDrawCreate(0.00, 0.00, " "); In these how to have a string in these last string tokens.