SA-MP Forums Archive
Example command with multiple params - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Example command with multiple params (/showthread.php?tid=90364)



Example command with multiple params - dougbrowne - 07.08.2009

Does anybody have an example of a command with multiple parameters? Like /v color color model or /weapon model ammo etc.

I saw the "how to make basic commands" tutorial but dcmd doesn't seem to work for me, Compiles fine but always get unknown command on server..

So an example command with multiple parameters using strtok would be cool. Thanks.


Re: Example command with multiple params - MadeMan - 07.08.2009

https://sampwiki.blast.hk/wiki/Fast_Commands - there are examples.