Different parameters in one command
#1

I am kind of stuck at the moment, I'm trying to make a command where you can give your weapon or drugs to another player. I have covered the weapon part but now I have to make the drug part. Which needs another parameters. Is there a way to add it without screwing the weapon part up?

Example weapon part:
/give weapon target

Example drug part:
/give drugs target amount

If I add amount to sscanf it won't let me execute the weapon part anymore.
Reply


Messages In This Thread
Different parameters in one command - by Sasoft - 20.06.2013, 12:27
Re: Different parameters in one command - by S0n1COwnsYou - 20.06.2013, 12:37
Re: Different parameters in one command - by Sasoft - 20.06.2013, 12:51
Re: Different parameters in one command - by S0n1COwnsYou - 20.06.2013, 12:58
Re: Different parameters in one command - by SilverKiller - 20.06.2013, 13:29
Re: Different parameters in one command - by Sasoft - 20.06.2013, 13:55
Re: Different parameters in one command - by Vince - 20.06.2013, 13:57
Re: Different parameters in one command - by Sasoft - 20.06.2013, 14:00
Re: Different parameters in one command - by SilverKiller - 20.06.2013, 14:12

Forum Jump:


Users browsing this thread: 6 Guest(s)