[ Solved ] register_concmd (vers fast ^^)
Hello,
Can someone explain to me one of this argument : Code:
Only this : "<nick, #userid, authid> <xp>" why they are < ... , ... , ... > < ... > and not < ... > < ... > < ... > < ... > or < ... > < ... , ... > etc ... and why they are a # before userid ? Thanks |
Re: [REQ] register_concmd (vers fast ^^)
It is just the description, it does not do anything.
But, the reason why there are 3 values in the first one is because it will accept any of those 3 as the first arg The # in front of userid is required by cmd_target, otherwise it assumes you are searching by nick. |
Re: [REQ] register_concmd (vers fast ^^)
Okay thanks a lot :D
Solved :D |
Re: [REQ] register_concmd (vers fast ^^)
Also, it is common to represent required arguments with <...> and optional arguments with [...].
|
Re: [REQ] register_concmd (vers fast ^^)
Like this :
Code:
|
Re: [REQ] register_concmd (vers fast ^^)
Quote:
A good example of optional arguments is amx_ban: PHP Code:
|
Re: [REQ] register_concmd (vers fast ^^)
Oh thanks i understand :D
|
| All times are GMT -4. The time now is 06:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.