Requiring some - 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: Requiring some (
/showthread.php?tid=274755)
Requiring some -
Abreezy - 07.08.2011
I'm trying to ensure I use the most efficient command processing and such, so I have decided to only use zcmd and sscanf2 for my commands throughout my newest project.(Mysql Roleplay Server From SCRATCH)
I understand the creator of sscanf2 explained in his thread his system and the uses, but I want a more direct explanation.
Lets say I want to make an OOC command, /(o)oc, What would be the sscanf code to use ? What would I use for any type of chat commands? I understand all it needs to do it grab the text, and and just display it with proxdetector or so.
All explanation are highly appreciated, thanks in advance.
Re: Requiring some -
Calgon - 07.08.2011
https://sampforum.blast.hk/showthread.php?tid=232129
Look there, there's loads more tutorials explaining how to use sscanf with zcmd, and there's even an example in that tutorial that shows how you can manipulate a string simiular to how you want with /ooc.
Re: Requiring some -
Abreezy - 07.08.2011
Thanks for the link; I've been messing around and such, and I'm start to understand it a bit more. Thanks though.