Difference between revisions of "Compiling Plugins (AMX Mod X)"
m (added LanguageSwitch) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Scripting (AMX Mod X)]] | ||
+ | {{LanguageSwitch}} | ||
+ | |||
+ | |||
This article describes how to compile [[AMX Mod X]] plugins from [[source code]] (.sma). | This article describes how to compile [[AMX Mod X]] plugins from [[source code]] (.sma). | ||
Line 5: | Line 9: | ||
=Windows= | =Windows= | ||
− | == | + | ==Drag and Drop== |
#Drag the .sma file onto "compile.exe". | #Drag the .sma file onto "compile.exe". | ||
#Look in the compiled folder for the output .amxx file. | #Look in the compiled folder for the output .amxx file. | ||
+ | |||
==Compiling All Plugins== | ==Compiling All Plugins== | ||
#Double click compile.exe to compile all plugins into the compiled folder. | #Double click compile.exe to compile all plugins into the compiled folder. | ||
Line 28: | Line 33: | ||
#Run amxxpc, like so: <pre>./amxxpc myplugin.sma</pre> | #Run amxxpc, like so: <pre>./amxxpc myplugin.sma</pre> | ||
#The output will be in the same folder. | #The output will be in the same folder. | ||
− | |||
− | |||
− |
Latest revision as of 12:09, 10 December 2006
Warning: This template (and by extension, language format) should not be used, any pages using it should be switched to Template:Languages | |
View this page in: English Russian 简体中文(Simplified Chinese) |
This article describes how to compile AMX Mod X plugins from source code (.sma).
For all steps, you should place the .sma file addons/amxmodx/scripting.
Contents
Windows
Drag and Drop
- Drag the .sma file onto "compile.exe".
- Look in the compiled folder for the output .amxx file.
Compiling All Plugins
- Double click compile.exe to compile all plugins into the compiled folder.
Command Line
- Go to Start, Run, type "cmd", click Ok.
- Use cd to change to the directory, I.e.:
cd c:\hlserver\cstrike\addons\amxmodx\scripting
- Use amxxsc to compile the plugin:
amxxpc.exe myplugin.sma
- The output will be in the same folder.
Linux
First, change to the scripting folder in your shell with:
cd addons/amxmodx/scripting
Compile All
- Run the script compile.sh by either:
sh compile.sh
orchmod +x compile.sh
./compile.sh
Compile single
- Run amxxpc, like so:
./amxxpc myplugin.sma
- The output will be in the same folder.