SA-MP Forums Archive
Strcat help - 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: Strcat help (/showthread.php?tid=388660)



Strcat help - DarkStorm22 - 29.10.2012

can anyone explain to me how strcat works?


Re: Strcat help - Dr.Einstein - 29.10.2012

Well basically, you have a string, and you add other parts to that string. Ex
new str[50];
format(str,sizeof(str),"Id is: %d",playerid)
strcat(str," and this piece is added later");

Output should be: Id is 32 and this piece is added later..


Re: Strcat help - tyler12 - 29.10.2012

Quote:
Originally Posted by return0
Посмотреть сообщение
Output should be: Id is 32 and this piece is added later..
Not if your ID is 0.

https://sampwiki.blast.hk/wiki/Strcat


Re: Strcat help - DarkStorm22 - 29.10.2012

ok,thank you