[Tutorial] PAWN Syntax and Compiler for Visual Studio Code
#41

Quote:
Originally Posted by Barnwell
View Post
pawn Code:
> Executing task in folder .vscode: c:\Users\Nevinn\Desktop\HC-RP Offical Release\0.3.8 RC4-4\gamemodes\.vscode\pawno\pawncc.exe ../Hard Core.pwn <

c:\Users\Nevinn\Desktop\HC-RP : The term 'c:\Users\Nevinn\Desktop\HC-RP' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ c:\Users\Nevinn\Desktop\HC-RP Offical Release\0.3.8 RC4-4\gamemodes\. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (c:\Users\Nevinn\Desktop\HC-RP:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

> Executing task in folder .vscode: c:\Users\Nevinn\Desktop\HC-RP Offical Release\0.3.8 RC4-4\gamemodes\.vscode\pawno\pawncc.exe ../Hard Core.pwn <

c:\Users\Nevinn\Desktop\HC-RP : The term 'c:\Users\Nevinn\Desktop\HC-RP' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ c:\Users\Nevinn\Desktop\HC-RP Offical Release\0.3.8 RC4-4\gamemodes\. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (c:\Users\Nevinn\Desktop\HC-RP:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Error.
Delete spaces in folders' names
Reply
#42

I've had the same problem. I solved by removing the spaces. In fact, if you look closely at it says:
Code:
The term 'c:\Users\Nevinn\Desktop\HC-RP is not recognized as the name of a cmdlet ....
command prompt example:
Code:
c:\user\folder\file.exe [option]
is not the same as
Code:
c:\user\main folder\file.exe
because the option in this last example is "folder\file.exe"

Sorry for bad english
Reply
#43

i cannot create .vscode folder , can you help me ?
Reply
#44

Quote:
Originally Posted by YamatoYamm
View Post
i cannot create .vscode folder , can you help me ?
Press on " Task " (last but one item) from navbar and press on " Configure build task ".




And for instant compile (without select build..) need put this code:
HTML Code:
{ 
    "version": "2.0.0",  
    "type": "shell", 
    "args": ["${relativeFile}"],  
    "windows":  
    {  
        "command": "C:\\pawno\\GM\\pawncc.exe"  
    },
    "group": {
        "kind": "build",
        "isDefault": true
    }
}
int tasks.json
Reply
#45

I only get these warnings in Visual Studio, never anywhere else. The script works perfectly fine and all, but that won't stop it from annoying the hell outta me xD

Any way to fix?
pawn Code:
Visual Studio\pawno\include\sscanf2.inc(270) : warning 218: old style prototypes used with optional semicolumns
Visual Studio\pawno\include\sscanf2.inc(330) : warning 218: old style prototypes used with optional semicolumns
Reply
#46

It very helpful! Nice
Reply
#47

Quote:
Originally Posted by [HLF]Southclaw
View Post
See the above post.
I fixed that a while ago. However I do have another issue. Visual Studio Code just won't compile my mapping filterscript. Ok more specifically it won't compile it if I keep the other modules included in it. Also I have this thing - Not really an issue, more of an annoyance really - Where it says things like <a_samp> can't resolve the path, yet the script compiles. What can I do to fix that one? Also the .vscode thing didn't work when I did that create shortcut thing you said - But I made the file myself for that one
Reply
#48

Estou tendo problemas na hora de compнlar, jб configurei tudo conforme o tуpico porйm quando vou compilar um arquivo .pwn da este problema ai.

Porйm se compilo pelo Pawno Infernus ele compila certinho mas pelo VSCODE da erro.
Reply
#49

Minha dъvida ainda persiste pois ainda nгo consegui compilar nenhum cуdigo atravйs do VSCODE.

1 Utilizado:

Code:
{ 
    "version": "2.0.0",  
    "type": "shell", 
    "args": ["${relativeFile}"],  
    "windows":  
    {  
        "command": "${workspaceRoot}\\pawno\\pawncc.exe"  
    } 
}
O terminal me retornou o erro:

Code:
> Executing task in folder Servidor Atual: """C:\Users\Leonardo Bradoks\Desktop\Servidor Atual\pawno\pawncc.exe" "filterscripts/Sistema de Level e Respeitos.pwn""" <

'""C:\Users\Leonardo' nгo й reconhecido como um comando interno
ou externo, um programa operбvel ou um arquivo em lotes.
O processo terminal encerrado com cуdigo de saнda: 1

Terminal serб reutilizado pelas tarefas, pressione qualquer tecla para fechar.
2 Utilizado:

Code:
{ 
  "version": "2.0.0", 
  "tasks": [ 
    { 
      "label": "build-normal", 
      "type": "shell", 
      "command": "${workspaceRoot}\\pawno\\pawncc.exe", 
      "args": ["${file}", "-Dgamemodes", "-;+", "-(+", "-d3"], 
      "group": { 
        "kind": "build", 
        "isDefault": true 
      }, 
      "isBackground": false, 
      "presentation": { 
        "reveal": "silent", 
        "panel": "dedicated" 
      }, 
      "problemMatcher": "$pawncc" 
    } 
  ] 
}
Estб dando erro na linha "problemMatcher": "$pawncc" mesmo assim salvei e tentei compilar.

O terminal me retornou o erro:

Code:
> Executing task in folder Servidor Atual: """C:\Users\Leonardo Bradoks\Desktop\Servidor Atual\pawno\pawncc.exe" "c:\Users\Leonardo Bradoks\Desktop\Servidor Atual\filterscripts\Sistema de Level e Respeitos.pwn" -Dgamemodes -;+ -(+ -d3"" <

'""C:\Users\Leonardo' nгo й reconhecido como um comando interno
ou externo, um programa operбvel ou um arquivo em lotes.
O processo terminal encerrado com cуdigo de saнda: 1

Terminal serб reutilizado pelas tarefas, pressione qualquer tecla para fechar.
Peзo que me ajudem pois este tуpico estб confuso e o autor do tуpico nгo estб sanando as dъvidas alheias.
Reply
#50

Consegui compilar mas estб dando este erro que nгo consigo retira-lo.

Estou utilizando este task.json
Code:
{ 
    "version": "2.0.0", 
    "tasks": [
        {
            "label": "build-normal",
            "type": "shell",
            "command": [
                "c:\\Users\\Leonardo^ Bradoks\\Desktop\\Servidor^ Atual\\pawno\\pawncc.exe",
                "\"${file}\""
            ],
            "args": [
                "-;+",
                "-(+"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "isBackground": false,
            "presentation": {
                "reveal": "silent",
                "panel": "dedicated"
            },
            "problemMatcher": "$pawncc"
        }
    ]
}
Reply
#51

do you have you tube video?
Reply
#52

Thank you so much!
Reply
#53

why i get this error,plz help me
this is my tasks.json
{
"version": "2.0.0",
"type": "shell",
"args": ["${relativeFile}"],
"windows":
{
"command": "${workspaceRoot}\\pawno\\pawncc.exe"
}
}
Reply
#54

Does anybody know why I get the following?

Code:
> Executing task: E:\pawno\pawncc.exe gamemodes/gm.pwn <

Pawn compiler 3.10.9                    Copyright © 1997-2006, ITB CompuPhase

E:\pawno\include\..\include\fixes.inc(4022) : fatal error 111: user error: _ALS_OnPlayerConnect defined

Compilation aborted.
Reply
#55

Quote:
Originally Posted by CONTROLA
View Post
Does anybody know why I get the following?

Code:
> Executing task: E:\pawno\pawncc.exe gamemodes/gm.pwn <

Pawn compiler 3.10.9                    Copyright © 1997-2006, ITB CompuPhase

E:\pawno\include\..\include\fixes.inc(4022) : fatal error 111: user error: _ALS_OnPlayerConnect defined

Compilation aborted.
Define fixes.inc before anything else. Make sure you define it after a_samp of course.
Reply
#56

I did that (after including a_samp) and I get the following error: "sscanf2.inc: fatal error 111: user error: Please include <a_npc> or <a_samp> first"

I already include a_samp, then fixes, then sscanf2. How could I fix this?

Later Edit: Nevermind, it fixed itself after a Visual Studio Code restart. Dunno why that happened.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)