SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 27/12/2017, 11:50 PM   #51
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 600
Reputation: 40
Default Re: PAWN Syntax and Compiler for Visual Studio Code

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.
Barnwell is offline   Reply With Quote
Old 29/12/2017, 02:07 AM   #52
Tween73
Banned
 
Join Date: Aug 2014
Posts: 107
Reputation: 0
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Your ******* tutorial?
Tween73 is offline   Reply With Quote
Old 30/12/2017, 11:56 AM   #53
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: PAWN Syntax and Compiler for Visual Studio Code

I've been using vscode for a while now and didn't notice this topic!

So I've authored a vscode version of my sublime stuff, I didn't like the syntax highlighting that was available as it had a ton of errors with switches, directives, states and a bunch of other Pawn-specific things. The highlighter for in the sublime repo has actually had a ton of contributions from community members and is now close to perfect for Pawn so I authored a vscode extension which includes that and the snippets/completions from the sublime repo.

I also have some other tools for compiling and stuff, I'll get it finished soon and post it here or a new topic.

extension: https://southclaws.visualstudio.com/vscode-pawn
repo: https://github.com/Southclaws/vscode-pawn
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 31/12/2017, 12:52 PM   #54
VincenzoDrift
Little Clucker
 
VincenzoDrift's Avatar
 
Join Date: Jun 2014
Posts: 47
Reputation: 3
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Quote:
Originally Posted by Barnwell View Post
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
__________________
Sorry for my bad english
VincenzoDrift is offline   Reply With Quote
Old 31/12/2017, 03:34 PM   #55
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: PAWN Syntax and Compiler for Visual Studio Code

the problem can be seen in the path if you read it: `gamemodes\.vscode\pawno\pawncc.exe`

.vscode should not be in `gamemodes/` it should be in the folder above, and the path to `pawno` should be relative to the workspace not the `.vscode` directory.

It's nothing to do with spaces, windows has allowed spaces in paths for as long as it has existed and it's worked fine.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 01/01/2018, 08:27 AM   #56
VincenzoDrift
Little Clucker
 
VincenzoDrift's Avatar
 
Join Date: Jun 2014
Posts: 47
Reputation: 3
Default Re: PAWN Syntax and Compiler for Visual Studio Code

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
__________________
Sorry for my bad english
VincenzoDrift is offline   Reply With Quote
Old 30/03/2018, 08:23 PM   #57
YamatoYamm
Little Clucker
 
Join Date: Jul 2017
Posts: 3
Reputation: 0
Default Re: PAWN Syntax and Compiler for Visual Studio Code

i cannot create .vscode folder , can you help me ?
YamatoYamm is offline   Reply With Quote
Old 22/04/2018, 10:31 PM   #58
Scriptery
Big Clucker
 
Join Date: Aug 2015
Location: Romania
Posts: 68
Reputation: 12
Exclamation Re: PAWN Syntax and Compiler for Visual Studio Code

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
__________________
My work:

ANTI AIMBOT
Scriptery is offline   Reply With Quote
Old 23/04/2018, 07:15 AM   #59
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Quote:
Originally Posted by Scriptery View Post
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
You'll run into all sorts of compatibility issues without specifying -;+ or -(+ and -Z+ if using the modern compiler. See this for the full tasks.json.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 26/07/2018, 09:40 PM   #60
Jay_Dixon
Huge Clucker
 
Jay_Dixon's Avatar
 
Join Date: Aug 2012
Posts: 252
Reputation: 17
Default Re: PAWN Syntax and Compiler for Visual Studio Code

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?
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
__________________


Jay_Dixon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Visual Studio Code Compiler Casttiel Lançamentos/Releases 7 17/08/2017 08:18 AM
Can someone make Pawn compiler for Visual Studio Code? DuyDang2412 Scripting Help 11 26/07/2017 11:21 AM
[Tutorial] Visual Studio like an compilator PAWN language Dystans Tutorials 9 17/02/2013 06:43 AM
Visual Studio as the development environment for PAWN Arca Scripting Help 7 28/07/2012 08:18 PM
PawnCC (Pawn Code Compiler) Crashes. Ash. Help Archive 4 28/07/2010 10:25 AM


All times are GMT. The time now is 09:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.