register_module -> require_module

This commit is contained in:
David Anderson 2004-09-10 05:18:57 +00:00
parent a055d3d373
commit 90eafe59a6
6 changed files with 14 additions and 4 deletions

View File

@ -2765,7 +2765,7 @@ AMX_NATIVE_INFO amxmod_Natives[] = {
{ "register_logevent",register_logevent}, { "register_logevent",register_logevent},
{ "register_menucmd", register_menucmd }, { "register_menucmd", register_menucmd },
{ "register_menuid", register_menuid }, { "register_menuid", register_menuid },
{ "register_module", register_module }, { "require_module", register_module },
{ "register_plugin", register_plugin }, { "register_plugin", register_plugin },
{ "register_srvcmd", register_srvcmd }, { "register_srvcmd", register_srvcmd },
{ "remove_cvar_flags", remove_cvar_flags }, { "remove_cvar_flags", remove_cvar_flags },

View File

@ -107,7 +107,7 @@ public plugin_init() {
#if defined USING_SQL #if defined USING_SQL
public plugin_modules() public plugin_modules()
{ {
register_module("DBI") require_module("DBI")
} }
#endif #endif

View File

@ -85,3 +85,8 @@ public getPing(id) {
g_pingSum[ id ] += iPing g_pingSum[ id ] += iPing
++g_pingCount[ id ] ++g_pingCount[ id ]
} }
public plugin_modules()
{
require_module("csstats")
}

View File

@ -1642,3 +1642,8 @@ public client_connect( id ) {
return PLUGIN_CONTINUE return PLUGIN_CONTINUE
} }
public plugin_modules()
{
require_module("csstats")
}

View File

@ -651,4 +651,4 @@ native plugin_flags();
forward plugin_modules(); forward plugin_modules();
native register_module(const module[]); native require_module(const module[]);

View File

@ -55,7 +55,7 @@ public plugin_init() {
public plugin_modules() public plugin_modules()
{ {
register_module("fun") require_module("fun")
} }
public actionTelMenu(id,key) { public actionTelMenu(id,key) {