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



Command parameter - POL_george - 27.11.2016

So maybe this is a noob question, but I know how to use OnPlayerCommandText, but I dont know how to get parameters... Im with oper arms for a include, but I already did some commands with the default thing


Re: Command parameter - Micko123 - 27.11.2016

use ZCMD or IZCMD for commands. They are fast and easy-to-use


Re: Command parameter - POL_george - 27.11.2016

But for my future knowlenge is there a way to get the parameter without includes Because Im very curios if I can do it more pawno


Re: Command parameter - Alvitr - 27.11.2016

i think that might strtok
https://sampwiki.blast.hk/wiki/Tutorial_of_strtok

read this first:
https://sampwiki.blast.hk/wiki/Strtok


Re: Command parameter - sammp - 27.11.2016

Strtok is painfully slow and archaic. Use YCMD or IZCMD. You don't need to do more with pawno. If you insist on doing it the old way then expect server hanging.