#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <string.h>#include <time.h>#include <assert.h>#include "console.h"#include "amx.h"#include "amx_comp.h"#include "common_libs.h"#include "srvparms.h"#include "amx_api.h"#include "constants.h"#include "target.h"#include "globals.h"#include "inlines.h"#include "amxscript.h"Defines | |
| #define | CONSOLE |
| #define | CHECKAMXV { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return; } |
| #define | CHECKAMX { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return 0; } |
| #define | ISNUMERICTYPE(A) ((A<7)&&(A!=AMXT_SPEECH)) |
| #define | FAIL { ConOut ("[FAIL]\n"); return; } |
Functions | |
| int | amx_InternalDebugProc (AMX *amx) |
| void | core_Init (void) |
| void | core_Exit (void) |
| int | amx_SetStringUnicode (cell *dest, wstring &source) |
| int | amx_GetStringUnicode (wstring &dest, cell *source) |
| void | strupcase (char *s) |
| Uppercases a string. | |
| void | strlocase (char *s) |
| Lowercases a string. | |
| void | sigabort (int sig) |
| int | amx_AbortProc (AMX *amx) |
| abort procedure for amx | |
| char * | strMode (int a) |
| converts a mode to a string | |
| void | check_Natives () |
| check the integrity of exported natives apis | |
| void | LoadOverrides (void) |
| Loads override.amx (eventually building it) and override.scp. | |
| void | checkAmxSpeech (SERIAL chr, char *speech) |
| checks speech from socket s for override invoking | |
| std::string | InvalidFunction ("InvalidFunction") |
Variables | |
| int | g_nTraceMode |
| char | g_strAmxSpeeches [256][256] |
| int | g_nAmxSpeechPtr = 0 |
| AMX_NATIVE_INFO | nxw_API [] |
| AMX_NATIVE_INFO | console_Natives [] |
| AMX_NATIVE_INFO | core_Natives [] |
| int | g_nCurrentSocket |
| int | s_nTmpEnableAMXScripts = 1 |
| int | g_nMoment = 0 |
| int | abortflagged = 0 |
| signal handler for amx debug interfaces | |
| bool | g_bByPass = false |
| AmxOverride | g_Scripts [10][8192] |
|
|
|
|
|
|
|
|
file : amxscript.cpp Project : Nox-Wizard Author : Purpose : Implementation of methods Amx for Script |
|
|
|
|
|
|
|
|
abort procedure for amx
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
check the integrity of exported natives apis
|
|
||||||||||||
|
checks speech from socket s for override invoking
|
|
|
|
|
|
|
|
|
|
|
|
Loads override.amx (eventually building it) and override.scp.
|
|
|
|
|
|
Lowercases a string.
|
|
|
converts a mode to a string
|
|
|
Uppercases a string.
|
|
|
signal handler for amx debug interfaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file : amxcback.cpp Project : Nox-Wizard Author : Purpose : Implementation of Functions for AMX Callbacks and AMX Events |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|