Add default value for aguments num in cmd_access

useful for commands with no arguments
This commit is contained in:
justgo97 2018-09-27 16:45:37 +01:00
parent e8c8111178
commit 8062237473

View File

@ -45,7 +45,7 @@ stock is_user_admin(id)
*
* @return 1 if access granted and parameters provided, 0 otherwise
*/
stock cmd_access(id, level, cid, num, bool:accesssilent = false)
stock cmd_access(id, level, cid, num = 0, bool:accesssilent = false)
{
new has_access = 0;
if (id == (is_dedicated_server() ? 0 : 1))