How to concatenate strings
#5

Quote:
Originally Posted by ForestCZE
View Post
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.
You need to pass the radiolist variable as a param in the format too, also notice the %s place.


PHP Code:
new radiolist[500];
strcat(radiolist"Stanice\tPosluchačů\n");
strcat(radiolist"Vypnout rбdio\n");
format(radiolistsizeof(radiolist), "%sEvropa 2\t%i\n"radiolistlisteners[0]); 
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: 1 Guest(s)