mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
new function names (AMXXLOG_*, countModules, CountModulesMode enum)
This commit is contained in:
parent
cdbfcdc4c4
commit
9902faa81c
@ -46,7 +46,7 @@
|
|||||||
#include "CMenu.h"
|
#include "CMenu.h"
|
||||||
#include "CEvent.h"
|
#include "CEvent.h"
|
||||||
|
|
||||||
#define AMX_VERSION "0.16"
|
#define AMX_VERSION "2.0"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -100,14 +100,11 @@ void UTIL_HudMessage(edict_t *pEntity, const hudtextparms_t &textparms, char *pM
|
|||||||
void UTIL_IntToString(int value, char *output);
|
void UTIL_IntToString(int value, char *output);
|
||||||
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name);
|
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name);
|
||||||
void UTIL_ShowMenu( edict_t* pEntity, int slots, int time, char *menu, int mlen );
|
void UTIL_ShowMenu( edict_t* pEntity, int slots, int time, char *menu, int mlen );
|
||||||
void UTIL_MakeNewLogFile();
|
|
||||||
void UTIL_Log(const char *fmt, ...);
|
|
||||||
|
|
||||||
#define UTIL_MODULES_RUNNING 0
|
// Logging
|
||||||
#define UTIL_MODULES_ALL 1
|
void AMXXLOG_Init();
|
||||||
#define UTIL_MODULES_STOPPED 2
|
void AMXXLOG_MakeNewLogFile();
|
||||||
|
void AMXXLOG_Log(const char *fmt, ...);
|
||||||
int UTIL_GetModulesNum(int mode);
|
|
||||||
|
|
||||||
#define GET_PLAYER_POINTER(e) (&g_players[ENTINDEX(e)])
|
#define GET_PLAYER_POINTER(e) (&g_players[ENTINDEX(e)])
|
||||||
//#define GET_PLAYER_POINTER(e) (&g_players[(((int)e-g_edict_point)/sizeof(edict_t ))])
|
//#define GET_PLAYER_POINTER(e) (&g_players[(((int)e-g_edict_point)/sizeof(edict_t ))])
|
||||||
@ -222,6 +219,16 @@ void attachModules();
|
|||||||
void attachMetaModModules( const char* filename );
|
void attachMetaModModules( const char* filename );
|
||||||
void dettachMetaModModules( const char* filename );
|
void dettachMetaModModules( const char* filename );
|
||||||
|
|
||||||
|
// Count modules
|
||||||
|
enum CountModulesMode
|
||||||
|
{
|
||||||
|
CountModules_Running = 0,
|
||||||
|
CountModules_All,
|
||||||
|
CountModules_Stopped
|
||||||
|
};
|
||||||
|
|
||||||
|
int countModules(CountModulesMode mode);
|
||||||
|
|
||||||
int add_amxnatives(module_info_s* info,AMX_NATIVE_INFO*natives);
|
int add_amxnatives(module_info_s* info,AMX_NATIVE_INFO*natives);
|
||||||
cell* get_amxaddr(AMX *amx,cell amx_addr);
|
cell* get_amxaddr(AMX *amx,cell amx_addr);
|
||||||
char* build_pathname(char *fmt, ... );
|
char* build_pathname(char *fmt, ... );
|
||||||
|
Loading…
Reference in New Issue
Block a user