View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-08-2017 , 13:44   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #67

Quote:
Originally Posted by Depresie View Post
Weird, are you sure you didn't forget to update the packages ?

Here, the problem still the same
I simplified the code more, try running this:
Code:
@echo on

rem AMXX Plugin Compiler Script
rem
rem  This program is free software; you can redistribute it and/or modify it
rem  under the terms of the GNU General Public License as published by the
rem  Free Software Foundation; either version 2 of the License, or ( at
rem  your option ) any later version.
rem
rem  This program is distributed in the hope that it will be useful, but
rem  WITHOUT ANY WARRANTY; without even the implied warranty of
rem  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rem  See the GNU General Public License for more details.
rem
rem  You should have received a copy of the GNU General Public License
rem  along with this program.  If not, see <http://www.gnu.org/licenses/>.
rem

echo.
echo Compiling %2... Current time is: %TIME% - %CURRENT_DATE%
echo.

set folders_list[0]=E:\HLDS\cstrike\addons\amxmodx\plugins
set AMXX_COMPILER_PATH=E:\HLDS\cstrike\addons\amxmodx\scripting\amxxpc.exe


set PLUGIN_SOURCE_CODE_FILE_PATH="%1"
set SOURCE_CODE_INCLUDE_FOLDER=%4\include
set PLUGIN_BASE_FILE_NAME=%2
set PLUGIN_BINARY_FILE_PATH=%folders_list[0]%\%PLUGIN_BASE_FILE_NAME%.amxx

IF %PLUGIN_BASE_FILE_NAME%=="" echo You must to save the plugin before to compile it. & goto end
IF EXIST "%PLUGIN_BINARY_FILE_PATH%" del "%PLUGIN_BINARY_FILE_PATH%"

rem To call the compiler to compile the plugin to the output folder $PLUGIN_BINARY_FILE_PATH
"%AMXX_COMPILER_PATH%" -i"%SOURCE_CODE_INCLUDE_FOLDER%/" -o"%PLUGIN_BINARY_FILE_PATH%" %PLUGIN_SOURCE_CODE_FILE_PATH%

rem If there was a compilation error, there is nothing more to be done.
IF NOT EXIST "%PLUGIN_BINARY_FILE_PATH%" goto end

echo.
echo 1 File(s) copied, to the folder %folders_list[0]%
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline