This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED | |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
* EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | |
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | |
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**--------------------------------------------------------------------------**\ | |
=========================== | |
foreach efficient looping | |
=========================== | |
Description: | |
Provides efficient looping through sparse data sets, such as connected | |
players. Significantly improved from the original version to be a generic | |
loop system, rather then purely a player loop system. When used for | |
players this has constant time O(n) for number of connected players (n), | |
unlike standard player loops which are O(MAX_PLAYERS), regardless of the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test:y_iter_Syntax1() | |
{ | |
new | |
Iterator:Test1_y_tter<100>; | |
Iter_Add(Test1_y_tter, 11); | |
Iter_Add(Test1_y_tter, 12); | |
Iter_Add(Test1_y_tter, 13); | |
Iter_Add(Test1_y_tter, 16); | |
Iter_Add(Test1_y_tter, 19); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**--------------------------------------------------------------------------**\ | |
========================== | |
y_colours - X11 colours! | |
========================== | |
Description: | |
This holds the colour information that used to be part of the text system | |
but which is far more useful than just for text. This now supports the full | |
set of X11 colours, both by name and by definition. You can also define | |
your own if you so choose (up to 32 - should be enough given that this | |
includes the X11 colours). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set MODE=YSI_TEST | |
set TARGET= | |
set COMPILER= | |
:get_args | |
if "%~1"=="" goto :args_got | |
if /I "%~1"=="-m" set MODE=%~2& shift | |
if /I "%~1"=="--mode" set MODE=%~2& shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set MODE=%~1 | |
set TARGET=%~2 | |
set FLAGS=%~3 | |
set NAME=%MODE%%TARGET% | |
call :setup | |
call :build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo OFF | |
rem Get the target compiler - defaults to just swapping with no parameter | |
if "%1"=="" ( | |
if exist "oldpawncc.exe" ( | |
set TO="old" | |
) else ( | |
set TO="new" | |
) | |
) else ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if !defined _DEBUG | |
#define _DEBUG -1 | |
#endif | |
#define FIXES_Single 0 | |
#tryinclude "..\compile_flags.txt" | |
#if !defined COMPILE_FLAGS | |
#define COMPILE_FLAGS "Pawno" | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------------------------------------------------------------*- | |
========================== | |
NPC script communication | |
========================== | |
Description: | |
This code provides a system to communicate with bots via files. It uses | |
locks to ensure only one script may communicate at once - bots and the main | |
server run in separate processes so it is possible to read and write from | |
the files at the same time if locks are not used. | |
OlderNewer