Skip to content

Commit

Permalink
Update native mm_force_votemod return type
Browse files Browse the repository at this point in the history
  • Loading branch information
FEDERICOMB96 committed Jul 28, 2023
1 parent d70b714 commit c4d798b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addons/amxmodx/scripting/include/mm_incs/defines.inc
Expand Up @@ -7,7 +7,7 @@

#define MM_VERSION_MAJOR 1
#define MM_VERSION_MINOR 1
#define MM_VERSION_PATCH 0
#define MM_VERSION_PATCH 1

#define PLUGIN_VERSION fmt("v%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_PATCH)

Expand Down
10 changes: 5 additions & 5 deletions addons/amxmodx/scripting/include/mm_incs/natives.inc
Expand Up @@ -151,17 +151,17 @@ public _mm_get_nextmod_name(plugin_id, argc)
/**
* Force a votemod.
*
* @return (int) 1 on success, 0 otherwise
* @return (bool) true on success, false otherwise
*
* native mm_force_votemod();
* native bool:mm_force_votemod();
*/
public _mm_force_votemod(plugin_id, argc)
public bool:_mm_force_votemod(plugin_id, argc)
{
if(CanForceVoteNextMod())
{
StartVoteNextMod();
return 1;
return true;
}

return 0;
return false;
}
6 changes: 3 additions & 3 deletions addons/amxmodx/scripting/include/multimod_manager_natives.inc
Expand Up @@ -9,7 +9,7 @@
*/
#define MM_VERSION_MAJOR 1
#define MM_VERSION_MINOR 1
#define MM_VERSION_PATCH 0
#define MM_VERSION_PATCH 1

/* ===========================================================================
* [ MULTIMOD MANAGER NATIVES ]
Expand Down Expand Up @@ -77,9 +77,9 @@ native mm_get_nextmod_name(szOutput[], const iLen);
/**
* Force a votemod.
*
* @return (int) 1 on success, 0 otherwise
* @return (bool) true on success, false otherwise
*/
native mm_force_votemod();
native bool:mm_force_votemod();

/* ===========================================================================
* [ MULTIMOD MANAGER FORWARDS ]
Expand Down

0 comments on commit c4d798b

Please sign in to comment.