Pass by reference unlimited 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: Pass by reference unlimited arguments? (
/showthread.php?tid=537656)
Pass by reference unlimited arguments? -
Magic_Time - 16.09.2014
Is there a way to make a function like:
PHP код:
stock SomeFunction(&...)
I've tried the above code, however it crashes the pawno compiler.
Re: Pass by reference unlimited arguments? -
Vince - 16.09.2014
You use the setarg() function for that.
Respuesta: Pass by reference unlimited arguments? -
Magic_Time - 16.09.2014
Oh, thank you so much!