AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AMXx version (https://forums.alliedmods.net/showthread.php?t=22751)

Obbin 01-03-2006 06:45

AMXx version
 
If its possible, how to find out witch version of amxx the server has installed?

Jordan 01-03-2006 07:02

Type in

meta list

in your console

Obbin 01-03-2006 07:40

I meaned width pawn, get the value to a variable.

PM 01-03-2006 07:52

I don't think it is, why do you need it?

Obbin 01-03-2006 08:05

To make my script compatible width both the upcomming 1.65 and older versions.

Charr 01-03-2006 15:54

Type "amxx version" in the console

v3x 01-03-2006 15:57

Quote:

Originally Posted by obbin
I meaned width pawn, get the value to a variable.


Charr 01-03-2006 16:00

I believe it would be something like this:
Code:
... if(AMXX_VERSION_STR == 1.6) {     ... } if(AMXX_VERSION_STR == 1.65) {     ... } ...
if it isn't "AMXX_VERSION_STR" isn't it, you can find it in amxconst.inc

v3x 01-03-2006 16:04

Code:
#define AMXX_VERSION        1.55 #define AMXX_VERSION_NUM    155 stock const AMXX_VERSION_STR[]="1.55"
:o

PM 01-03-2006 17:19

You can't use amxconst.inc for this because from what I understood, the original poster wants to decide on runtime.

obbin: What is incompatible? Why do you need to have the version?


All times are GMT -4. The time now is 15:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.