From 8062237473b35378f3fd4f146eb9a975c526b88e Mon Sep 17 00:00:00 2001 From: justgo97 Date: Thu, 27 Sep 2018 16:45:37 +0100 Subject: [PATCH] Add default value for aguments num in cmd_access useful for commands with no arguments --- plugins/include/amxmisc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 96fb92a8..9a55bd4e 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -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))