#1

Hi.
I have one problem.
I have a command /h(ouse) for putmoney, putdrugs, lock, info...
This is the part of the script:
Код:
     if(sscanf(params, "s[10]i", option,vrednost)) return SendCliientMessage...
     if(strcmp(option,"putmoney") == 0)
     {
      ...
     }
     if(strcmp(option,"info") == 0)
     {
     ...
     }
When i type command putmoney, putdrugs... i have to put /h putmoney [amount] this is OK
And when i type command lock, info... i have to put /h lock [amount]
Now, how can i make so that when i type commands lock, info... i dont have to put the "[amount]".

Thanks.
Reply


Messages In This Thread
Help - by Fjclip99 - 27.12.2013, 18:34
Re: Help - by Fjclip99 - 28.12.2013, 08:20
Re: Help - by Fjclip99 - 04.01.2014, 14:04
Re: Help - by Fjclip99 - 07.02.2014, 18:41
Re: Help - by Konstantinos - 07.02.2014, 18:48
Re: Help - by Fjclip99 - 07.02.2014, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)