Adding more to 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: Adding more to a string (
/showthread.php?tid=296127)
Adding more to a string -
oliverrud - 09.11.2011
Is there a way to add more onto a string later on?
Like for example in php you would do:
Код:
$string .= "more information<br>";
So I'm wondering if something like:
pawn Код:
format(string,sizeof(string),"%s more information",string);
would work?
Re: Adding more to a string -
Norn - 09.11.2011
Strcat
Re: Adding more to a string -
oliverrud - 09.11.2011
Oh didn't know of that one, anyhow the format thing did also work as I intended, but nice to know for further stuff.