Just a small problem!
hi guys !
I saw many people use this func"cmd_access ( id, level, cid, num)" But I don't know how to use it ! can some one make a explanation about it ? thx !:mrgreen: |
Re: Just a small problem!
|
Re: Just a small problem!
But I don't know how to set the last parameter
|
Re: Just a small problem!
Show us your code, since I now know about the cmd_access() function, I'll help you out.
|
Re: Just a small problem!
It's written. It's the number of arguments passed ( command itself included ).
|
Re: Just a small problem!
OK, I just make a simple example !
PHP Code:
|
Re: Just a small problem!
if( !cmd_access(id, level, cid, ParamsNum ) {
If you have like, amx_cmd nick, it will be 2 param, cmd + nick ;) |
Re: Just a small problem!
Yes, like xPaw said.
So if you want to use only the command without an additional parameter just use number 1... and if you want a command with additional 2 parameters like for example: amx_kick <player1> <player2> Just use number 3. P.S: In short, the command is a parameter too. |
Re: Just a small problem!
I think i may know a little, anyway , thx !!
|
Re: Just a small problem!
When you said last parameter I was thinking of the current version of the cmd_access() function :).
PHP Code:
|
| All times are GMT -4. The time now is 15:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.