Portal SAMP
[Ajuda] Erro com ZeeX Compiler - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Erro com ZeeX Compiler (/showthread.php?tid=221)



Erro com ZeeX Compiler - Sants - 23/10/2020

Utilizei esse tópico para fazer instalação do compilador: https://portalsamp.com/showthread.php?tid=134

Contudo, quando compilo meu terminal me trás o seguinte erro:

Código:
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]

Options:
         -A<num>  alignment in bytes of the data segment and the stack
         -a       output assembler code
         -C[+/-]  compact encoding for output file (default=+)
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
         -Dpath   active directory path
         -d<num>  debugging level (default=-d1)
             0    no symbolic information, no run-time checks
             1    run-time checks, no symbolic information
             2    full debug information and dynamic checking
             3    same as -d2, but implies -O0
         -e<name> set name of error file (quiet compile)
         -H<hwnd> window handle to send a notification message on finish
         -i<name> path for include files
         -l       create list file (preprocess only)
         -o<name> set base name of (P-code) output file
         -O<num>  optimization level (default=-O1)
             0    no optimization
             1    JIT-compatible optimizations only
             2    full optimizations
         -p<name> set name of "prefix" file
         -R[+/-]  add detailed recursion report with call chains (default=-)
         -r[name] write cross reference report to console or to specified file
         -S<num>  stack/heap size in cells (default=4096)
         -s<num>  skip lines from the input file
         -t<num>  TAB indent size (in character positions, default=8)
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
         -w<num>  disable a specific warning by its number
         -X<num>  abstract machine size limit in bytes
         -XD<num> abstract machine data/stack size limit in bytes
         -Z[+/-]  run in compatibility mode (default=-)
         -E[+/-]  turn warnings in to errors
         -\       use '\' for escape characters
         -^       use '^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
[Finished in 0.1s with exit code 3]
[cmd: ['pawncc.exe', '-i includes', '', '-; +']]
[dir: C:\Users\Ricardo Santana\Desktop\Sa-mp Server]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Ricardo Santana\AppData\Local\Microsoft\WindowsApps;;C:\Users\Ricardo Santana\AppData\Local\Programs\Microsoft VS Code\bin]
Gostaria de saber se algum de vocês sabe como resolver esse pequeno entrave. Desde já agradeço.


RE: Erro com ZeeX Compiler - Sants - 24/10/2020

Eu estava usando o Sublime Text. O erro se encontrava no arquivo .sublime-build. Onde existia um espaço entre o "$" e o "file".

Caso alguém tenha o mesmo problema use esta build:

Código PHP:
{
    
"cmd": ["pawncc.exe""-i includes""$file""-;+"],
    
"path""C:/pasta/do/pawn"




RE: Erro com ZeeX Compiler - Lucas_fxp - 24/11/2022

(24/10/2020 13:26)Sants Escreveu: Eu estava usando o Sublime Text. O erro se encontrava no arquivo .sublime-build. Onde existia um espaço entre o "$" e o "file".

Caso alguém tenha o mesmo problema use esta build:

Código PHP:
{
    
"cmd": ["pawncc.exe""-i includes""$file""-;+"],
    
"path""C:/pasta/do/pawn"

fatal error 111: user error: Please include <a_npc> or <a_samp> first. o meu esta dando esse erro


RE: Erro com ZeeX Compiler - Carlos Victor - 25/11/2022

Código:
{
    "cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+"],
    "working_dir": "${file_path}",
    "file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
    "variants": [
        {
            "cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-l"],
            "working_dir": "${file_path}",
            "name": "Preprocessed output"
        },
        {
            "cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-a"],
            "working_dir": "${file_path}",
            "name": "P-code output"
        }
    ]
}
Eu prefiro usar esse build, ele não precisa ficar mudando o destino todavia, ele automáticamente vai ir no projeto aberto(ou o primeiro na lista do Sublime Text) e vai compilar certinho.