How to concatenate strings
#4

Quote:
Originally Posted by iKarim
View Post
That's usually how it's done:

PHP Code:
new message[124], value 5;
strcat(string"hello");
format(stringsizeof string"%s world! %i"stringvalue); 
You pass the actual string to the format function and add whatever you need.
I'm sorry, but I probably didn't understand you. This code:

PHP Code:
new radiolist[500];
strcat(radiolist"Stanice\tPosluchačů\n");
strcat(radiolist"Vypnout rбdio\n");
format(radiolistsizeof(radiolist), "Evropa 2\t%i\n"listeners[0]); 
does not work.
Reply


Messages In This Thread
How to concatenate strings - by ForestCZE - 24.02.2018, 10:25
Re: How to concatenate strings - by iKarim - 24.02.2018, 10:33
Re: How to concatenate strings - by RogueDrifter - 24.02.2018, 10:44
Re: How to concatenate strings - by ForestCZE - 24.02.2018, 10:51
Re: How to concatenate strings - by iKarim - 24.02.2018, 10:53
Re: How to concatenate strings - by ForestCZE - 24.02.2018, 11:00
Re: How to concatenate strings - by DTV - 26.02.2018, 23:49

Forum Jump:


Users browsing this thread: 2 Guest(s)