HELP - Long string
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)