06-04-2023, 09:44 AM
(This post was last modified: 06-04-2023, 09:45 AM by Fullserver.)
For Windows:
Drag and Drop Method:
Compiling All Plugins:
Command Line Method:
For Linux:
First, navigate to the scripting directory in your shell:
Compiling All Plugins:
Compiling a Single Plugin:
Drag and Drop Method:
- Drag the .sma file onto "compile.exe".
- The compiled .amxx file will be located in the ../compiled/ directory.
Compiling All Plugins:
- Double-click on compile.exe to compile all plugins and place them in the ../compiled/ directory.
Command Line Method:
- Go to "Start" -> "Run" -> type "cmd" and press Ok.
- Use cd to change the directory, for example:
Code:cd c:\hlserver\cstrike\addons\amxmodx\scripting
- Use amxxpc to compile the plugin:
Code:amxxpc.exe myplugin.sma
- The compiled plugin will be in the same directory.
For Linux:
First, navigate to the scripting directory in your shell:
Code:
cd addons/amxmodx/scripting
Compiling All Plugins:
- Run the compile.sh script using one of the following methods:
orCode:sh compile.sh
./compile.shCode:chmod +x compile.sh
Compiling a Single Plugin:
- Run amxxpc, for example:
Code:./amxxpc myplugin.sma
- The compiled plugin will be in the same directory.