/pbackup - 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: /pbackup (
/showthread.php?tid=78745)
/pbackup -
Hot - 22.05.2009
When I use strtok, is always to reconize the id after space bar, but how could I do to reconize A word and put it in a SendCopMessage(My Function) ?
Like a /backup command,
i.g. : /backup [Location] , Police Officer %s needs back up! (Location: %s)
Help?
Re: /pbackup -
Weirdosport - 22.05.2009
If you used DCMD and/or SSCANF this would be a doddle! If you're interested lookup "Fast Commands" on the wiki...
Re: /pbackup -
Hot - 23.05.2009
I know it would easier, but i am begginer and I want to get advanced at strtok, so can you give a example?