HELP - Long 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: HELP - Long string (
/showthread.php?tid=543305)
HELP - Long string -
Fjclip99 - 25.10.2014
So i am making /stats command and that will show player dialog...
there are a lot of informations to display, so is there any easier way to do a string or do it in a single line?
+ how can i make so that information will be one bellow other:
I want to make something like that:
/imageshack/img546/959/samp001rq.png
Re: HELP - Long string -
ikey07 - 25.10.2014
use strcat()
like
pawn Код:
new statline[32],string[1024];
format(string,sizeof(string),"Stat1: %d\n",stat1); strcat(statline,string);
format(string,sizeof(string),"Stat2: %d\n",stat2); strcat(statline,string);
format(string,sizeof(string),"Stat3: %d\n",stat3); strcat(statline,string);
and so on