[HELP] With sscanf
#2

Hello.

The variable "cmdtext" contains the WHOLE command.
E.g. If you typed "/sg hello" cmdtext would equal "/sg hello".

Sscanf isn't reporting that it can't find a string because when you type "/sg", cmdtext is equal to "/sg", so sscanf can find a string.


What you need to do is remove the command the player types manually, or use ONE of the two following includes:
ZCMD- Fastest command processor https://sampforum.blast.hk/showthread.php?tid=91354
YCMD- Second fastest (not far off) and offers more features https://sampforum.blast.hk/showthread.php?tid=169029
Reply


Messages In This Thread
[HELP] With sscanf - by V4at - 24.06.2012, 18:50
Re: [HELP] With sscanf - by Badger(new) - 24.06.2012, 21:19
Re: [HELP] With sscanf - by Vince - 24.06.2012, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)