mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Merge pull request #215 from xPaw/no-version-check
Remove version checks from all include files
This commit is contained in:
commit
014120e73e
@ -16,13 +16,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _cstrike_included
|
#define _cstrike_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib cstrike
|
||||||
#pragma reqlib cstrike
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib cstrike
|
||||||
#pragma loadlib cstrike
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library cstrike
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,13 +18,9 @@
|
|||||||
|
|
||||||
#include <csstats>
|
#include <csstats>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass xstats
|
||||||
#pragma reqclass xstats
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma defclasslib xstats csx
|
||||||
#pragma defclasslib xstats csx
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library csx
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _dbi_included
|
#if defined _dbi_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _dbi_included
|
#define _dbi_included
|
||||||
|
|
||||||
@ -34,11 +34,7 @@
|
|||||||
// there's really no reason to anyway.
|
// there's really no reason to anyway.
|
||||||
#assert !defined _sqlx_included
|
#assert !defined _sqlx_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass dbi
|
||||||
#pragma reqclass dbi
|
|
||||||
#else
|
|
||||||
#pragma library dbi
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum Sql
|
enum Sql
|
||||||
{
|
{
|
||||||
|
@ -12,19 +12,15 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _dodfun_included
|
#if defined _dodfun_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _dodfun_included
|
#define _dodfun_included
|
||||||
|
|
||||||
#include <dodconst>
|
#include <dodconst>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib dodfun
|
||||||
#pragma reqlib dodfun
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib dodfun
|
||||||
#pragma loadlib dodfun
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library dodfun
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Function is called after grenade throw */
|
/* Function is called after grenade throw */
|
||||||
|
@ -12,20 +12,16 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _dodx_included
|
#if defined _dodx_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _dodx_included
|
#define _dodx_included
|
||||||
|
|
||||||
#include <dodconst>
|
#include <dodconst>
|
||||||
#include <dodstats>
|
#include <dodstats>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass xstats
|
||||||
#pragma reqclass xstats
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma defclasslib xstats dodx
|
||||||
#pragma defclasslib xstats dodx
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library dodx
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************* Shared Natives Start ********************************/
|
/************* Shared Natives Start ********************************/
|
||||||
|
@ -13,19 +13,15 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _engine_included
|
#if defined _engine_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _engine_included
|
#define _engine_included
|
||||||
|
|
||||||
#include <engine_const>
|
#include <engine_const>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib engine
|
||||||
#pragma reqlib engine
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib engine
|
||||||
#pragma loadlib engine
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library engine
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
native traceresult(type,any:...);
|
native traceresult(type,any:...);
|
||||||
|
@ -18,13 +18,9 @@
|
|||||||
|
|
||||||
#include <fakemeta_const>
|
#include <fakemeta_const>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib fakemeta
|
||||||
#pragma reqlib fakemeta
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib fakemeta
|
||||||
#pragma loadlib fakemeta
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library fakemeta
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,17 +12,13 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _fun_included
|
#if defined _fun_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _fun_included
|
#define _fun_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib fun
|
||||||
#pragma reqlib fun
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib fun
|
||||||
#pragma loadlib fun
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library fun
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Returns 1 if receiver hears sender via voice communication. */
|
/* Returns 1 if receiver hears sender via voice communication. */
|
||||||
|
@ -16,13 +16,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _geoip_included
|
#define _geoip_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib geoip
|
||||||
#pragma reqlib geoip
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib geoip
|
||||||
#pragma loadlib geoip
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library geoip
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,13 +27,9 @@
|
|||||||
|
|
||||||
#include <ham_const>
|
#include <ham_const>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib hamsandwich
|
||||||
#pragma reqlib hamsandwich
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib hamsandwich
|
||||||
#pragma loadlib hamsandwich
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library hamsandwich
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -320,24 +316,24 @@ native GetHamItemInfo(iteminfo_handle, HamItemInfo:type, any:...);
|
|||||||
*/
|
*/
|
||||||
native SetHamItemInfo(iteminfo_handle, HamItemInfo:type, any:...);
|
native SetHamItemInfo(iteminfo_handle, HamItemInfo:type, any:...);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an ItemInfo handle. This value should never be altered.
|
* Creates an ItemInfo handle. This value should never be altered.
|
||||||
* The handle can be used in Get/SetHamItemInfo.
|
* The handle can be used in Get/SetHamItemInfo.
|
||||||
*
|
*
|
||||||
* NOTE: You must call FreeHamItemInfo() on every handle made with CreateHamItemInfo().
|
* NOTE: You must call FreeHamItemInfo() on every handle made with CreateHamItemInfo().
|
||||||
*
|
*
|
||||||
* @return A new ItemInfo handle.
|
* @return A new ItemInfo handle.
|
||||||
*/
|
*/
|
||||||
native CreateHamItemInfo();
|
native CreateHamItemInfo();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Frees an ItemIndo handle created with CreateHamItemInfo(). Do not call
|
* Frees an ItemIndo handle created with CreateHamItemInfo(). Do not call
|
||||||
* this more than once per handle, or on handles not created through
|
* this more than once per handle, or on handles not created through
|
||||||
* CreateHamItemInfo().
|
* CreateHamItemInfo().
|
||||||
*
|
*
|
||||||
* @param itemInfo_handle ItemInfo handle created via CreateHamItemInfo().
|
* @param itemInfo_handle ItemInfo handle created via CreateHamItemInfo().
|
||||||
* @noreturn
|
* @noreturn
|
||||||
*/
|
*/
|
||||||
native FreeHamItemInfo(itemInfo_handle);
|
native FreeHamItemInfo(itemInfo_handle);
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,19 +14,13 @@
|
|||||||
#if defined NS_INC
|
#if defined NS_INC
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define NS_INC
|
#define NS_INC
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib ns
|
||||||
#pragma reqlib ns
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib ns
|
||||||
#pragma loadlib ns
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library ns
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <ns_const>
|
#include <ns_const>
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,17 +12,13 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _nvault_included
|
#if defined _nvault_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _nvault_included
|
#define _nvault_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib nvault
|
||||||
#pragma reqlib nvault
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib nvault
|
||||||
#pragma loadlib nvault
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library nvault
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* All timestamps are in UNIX epoch form. */
|
/* All timestamps are in UNIX epoch form. */
|
||||||
|
@ -16,13 +16,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _regex_included
|
#define _regex_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib regex
|
||||||
#pragma reqlib regex
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib regex
|
||||||
#pragma loadlib regex
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library regex
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,13 +19,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _socket_included
|
#define _socket_included
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib sockets
|
||||||
#pragma reqlib sockets
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib sockets
|
||||||
#pragma loadlib sockets
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library socket
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Use SOCKET_TCP for TCP Socket connections
|
// Use SOCKET_TCP for TCP Socket connections
|
||||||
|
@ -12,19 +12,17 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _sqlx_included
|
#if defined _sqlx_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _sqlx_included
|
#define _sqlx_included
|
||||||
|
|
||||||
//eh..
|
//eh..
|
||||||
#define SQL_NumRows SQL_NumResults
|
#define SQL_NumRows SQL_NumResults
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass sqlx
|
||||||
#pragma reqclass sqlx
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma defclasslib sqlx mysql
|
||||||
#pragma defclasslib sqlx mysql
|
#endif
|
||||||
#endif //!defined AMXMODX_NOAUTOLOAD
|
|
||||||
#endif //AMXX_VERSION_NUM
|
|
||||||
|
|
||||||
enum Handle
|
enum Handle
|
||||||
{
|
{
|
||||||
|
@ -12,20 +12,16 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _tfcx_included
|
#if defined _tfcx_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _tfcx_included
|
#define _tfcx_included
|
||||||
|
|
||||||
#include <tfcconst>
|
#include <tfcconst>
|
||||||
#include <tfcstats>
|
#include <tfcstats>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass xstats
|
||||||
#pragma reqclass xstats
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma defclasslib xstats tfcx
|
||||||
#pragma defclasslib xstats tfcx
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library tfcx
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************* Shared Natives Start ********************************/
|
/************* Shared Natives Start ********************************/
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _tsxfun_included
|
#if defined _tsxfun_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _tsxfun_included
|
#define _tsxfun_included
|
||||||
|
|
||||||
@ -27,13 +27,9 @@ enum {
|
|||||||
XMF_DEATH,
|
XMF_DEATH,
|
||||||
};
|
};
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqlib tsfun
|
||||||
#pragma reqlib tsfun
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma loadlib tsfun
|
||||||
#pragma loadlib tsfun
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library tsfun
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************* Shared Natives End ********************************/
|
/************* Shared Natives End ********************************/
|
||||||
|
@ -12,19 +12,15 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#if defined _tsx_included
|
#if defined _tsx_included
|
||||||
#endinput
|
#endinput
|
||||||
#endif
|
#endif
|
||||||
#define _tsx_included
|
#define _tsx_included
|
||||||
|
|
||||||
#include <tsstats>
|
#include <tsstats>
|
||||||
|
|
||||||
#if AMXX_VERSION_NUM >= 175
|
#pragma reqclass xstats
|
||||||
#pragma reqclass xstats
|
#if !defined AMXMODX_NOAUTOLOAD
|
||||||
#if !defined AMXMODX_NOAUTOLOAD
|
#pragma defclasslib xstats tsx
|
||||||
#pragma defclasslib xstats tsx
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#pragma library tsx
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************* Shared Natives Start ********************************/
|
/************* Shared Natives Start ********************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user