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



OnPlayerCommandText - yoan103 - 07.07.2010

Well, i use OnPlayerCommandText, because it's more handy for me, but i see all around the forum, that you use in your scripts dcmd commands, and so on. Is it just easier with dcmd commands, or when i type many commands in OnPlayerCommandText, it will "lag" because i saw something like it months ago in the forum. Can you help me, because i am gonna make lots of commands


Re: OnPlayerCommandText - Hiddos - 07.07.2010

strtok is slower then dcmd, if that's what you're asking.


Re: OnPlayerCommandText - dice7 - 07.07.2010

It depends on how a command is scripted. And strtok is exactly 0.00023 of a second slower then dcmd
...