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



Arguments - Ferjkee - 28.02.2015

Sorry for my bad english, i'm russian.

I created a function in which several arguments that you want to display in text form.

The solution I found, for example:
PHP код:
 printf ("% d"getarg (i)); 
But, because the exact number to display not foresee, and create a lot of inspections and they concluded - is silly.
PHP код:
 printf ("% d,% d ..."getarg (i), getarg () ...); 
It would be so simple..
PHP код:
printf ("% d", (for (<numarg (); ++) getarg (i)));
// Somewhere in parallel reality 
Curious about how function format .
Can anyone tell me that?