Best way of replacing a string?
#1

Hello, What is the best way to replace a string?

Example: format(test[playerid], sizeof(test[playerid]), "%s","replaceing");

I have heard that strcat is better but that function only seems to join together two strings... I don't wont to do that I like to replace the whole content of test[playerid].
Reply


Messages In This Thread
Best way of replacing a string? - by robanswe - 02.12.2012, 18:37
Re: Best way of replacing a string? - by maramizo - 02.12.2012, 18:56
Re: Best way of replacing a string? - by Intoxicated - 02.12.2012, 18:56
Re: Best way of replacing a string? - by robanswe - 03.12.2012, 09:32
Re: Best way of replacing a string? - by Faisal_khan - 03.12.2012, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)