Re: PAWN Syntax and Compiler for Visual Studio Code -
VincenzoDrift - 31.12.2017
Quote:
Originally Posted by Barnwell
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
Re: PAWN Syntax and Compiler for Visual Studio Code -
VincenzoDrift - 01.01.2018
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
Re: PAWN Syntax and Compiler for Visual Studio Code -
YamatoYamm - 30.03.2018
i cannot create .vscode folder , can you help me ?
Re: PAWN Syntax and Compiler for Visual Studio Code -
Scriptery - 22.04.2018
Quote:
Originally Posted by YamatoYamm
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
Re: PAWN Syntax and Compiler for Visual Studio Code -
Jay_Dixon - 26.07.2018
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
Re: PAWN Syntax and Compiler for Visual Studio Code -
Heress - 28.07.2018
It very helpful! Nice
Re: PAWN Syntax and Compiler for Visual Studio Code -
Jay_Dixon - 29.07.2018
Quote:
Originally Posted by [HLF]Southclaw
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
Re: PAWN Syntax and Compiler for Visual Studio Code -
[BOPE]Seu._.Madruga - 01.08.2018
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.
Re: PAWN Syntax and Compiler for Visual Studio Code -
[BOPE]Seu._.Madruga - 02.08.2018
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.
Re: PAWN Syntax and Compiler for Visual Studio Code -
[BOPE]Seu._.Madruga - 06.08.2018
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"
}
]
}
Re: PAWN Syntax and Compiler for Visual Studio Code -
Viz - 12.08.2018
do you have you tube video?
Re: PAWN Syntax and Compiler for Visual Studio Code -
JaskaranSingh - 29.12.2018
Thank you so much!
Re: PAWN Syntax and Compiler for Visual Studio Code -
1136382040 - 23.02.2019
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"
}
}
Re: PAWN Syntax and Compiler for Visual Studio Code -
CONTROLA - 24.02.2019
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.
Re: PAWN Syntax and Compiler for Visual Studio Code -
polygxn - 24.02.2019
Quote:
Originally Posted by CONTROLA
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.
Re: PAWN Syntax and Compiler for Visual Studio Code -
CONTROLA - 03.03.2019
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.