27.12.2013, 18:34
Hi.
I have one problem.
I have a command /h(ouse) for putmoney, putdrugs, lock, info...
This is the part of the script:
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.
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) { ... }
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.