Uma experiência de desenvolvimento moderna e poderosa para a clássica linguagem AMXXPawn.
Página Inicial | Histórico de Mudanças
This project revives and modernizes the development experience for AMX Mod X scripters. If you love creating plugins for Half-Life, Counter-Strike 1.6, and other GoldSrc mods but miss modern tools, this extension is for you.
It transforms VS Code into a powerful IDE for Pawn, bringing features that were previously exclusive to newer languages.
Ctrl+Click (Ir para Definição) não funcionava em funções que utilizavam uma tag (ex: bool:IsVip(id)).Ctrl+Click (Go to Definition) did not work on functions using a tag (e.g., bool:IsVip(id)).
/** ... */) em vez de apenas a sua assinatura./** ... */ comments) instead of just its signature.#include directives that contain spaces (e.g., #include < fun >).This extension goes far beyond simple syntax highlighting. It offers a complete Language Server with:
Ctrl+Click to instantly jump to the definition of:
public, stock, native, and those with an @ prefix).#define.set_task_ex(..., "my_function", ...)).#include cannot be found, helping you fix errors before you even compile.Ctrl+Shift+X).AMXXPawn Language Service.You can also install it directly from the Marketplace page.
For the extension to work 100%, you must tell it where your AMXX compiler and include files are located.
Ctrl + ,).settings.json:{
// Path to the amxxpc compiler executable.
"amxxpawn.compiler.executablePath": "C:\\path\\to\\your\\compiler\\amxxpc.exe",
// List of folders where the extension should look for .inc files.
// ESSENTIAL for "Go to Definition" of native functions to work.
"amxxpawn.compiler.includePaths": [
"C:\\path\\to\\your\\compiler\\include"
],
// --- RECOMMENDED SETTING ---
// For a cleaner and smarter autocomplete experience,
// disable generic suggestions based on words in the file.
"editor.wordBasedSuggestions": "off"
}
IMPORTANT for Windows users: In JSON files, you must use double backslashes (\\) or forward slashes (/) in paths.
Practical Example:
{
"amxxpawn.compiler.executablePath": "C:/AMXX/compiler/amxxpc.exe",
"amxxpawn.compiler.includePaths": [
"C:/AMXX/compiler/include"
]
}
Open the Command Palette (Ctrl+Shift+P) and type AMXXPawn to see the available commands:
.sma file using the executablePath defined in your settings.amxxpc.exe located in the same folder as the .sma file you are editing.This project is a modernization of a legacy codebase, now using TypeScript and the latest vscode-languageclient APIs. Contributions are very welcome!
To compile and test locally:
git clone https://github.com/NiceFeatures/amxxpawn-language.gitnpm installnpm run compileF5 to start a debugging session.This project is a continuation and modernization of the incredible work originally done by KliPPy. All credit for the solid foundation and the original idea goes to him.
This project is licensed under the GPL-3.0. See the LICENSE file for more details.