Premium Реклама Spotlight Bundles Boost Банери Кредити
Основно Начало Сървъри Marketplace Форум Сървъри
Общности Хостинг Добави Auction Boost
Ресурси
Библиотеки Карти Видеа Магазин Bundles
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
TOP SERVER
[IG] Easy Surf | Ramp Fix | RANKS | REPLAYS
Counter-Strike 1.6
surf_flyin_fortress
40.160.19.36:27015
18.05 18:49
8/64
186ms
/ Библиотеки / ddimension.inc

ddimension.inc

www.gnu.org/licenses/.

.inc 1.5 KB 53 реда 04.04.2026
Pawn / AMX Mod X
/*

	dDimension ( Definition Dimension )
	Version 1.1

	Copyright � 2010 SnoW

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see http://www.gnu.org/licenses/.

*/

#if defined _ddimension_included
	#endinput
#endif

#define _ddimension_included

#pragma tabsize 0

stock dGetArrayDimension( ArrayIndex[ ], any: ... )
{
	new Args = numargs( ), Arg = 1, DimensionValue;

	DimensionValue += getarg( Arg++ );

	while( Arg < Args )
	{
		DimensionValue *= ArrayIndex[ Arg + 1 ];
		DimensionValue += getarg( Arg++ );
	}

	return DimensionValue;
}

#define c{%1:%2[%3][%4][%5]%6} enum{ %6 }; %1: %2[ %3 ][ %4 ][ _:( %5 ) ], %2@[ ] = { _:( %3 ), _:( %4 ), _: ( %5 ) }
#define enum{[%1]%2};%3[%4][%5][%6],%7[]={%8} enum{%2};%3[%4][%5][%6*_:(%1)],%7[]={%8,_:(%1)}

#define d{%1[%2][%3][%4]%5} %1[ %2 ][ %3 ][ dGetArrayDimension( %1@ [%4]%5 ) ]
#define dGetArrayDimension(%1[%2]%3) dGetArrayDimension( %1, %2 %3 )

#define p{%1} %1, %1@
#define g{%1} %1[ ][ ][ ], %1@[ ]
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <ddimension>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET