SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/08/2017, 01:47 AM   #11
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,286
Reputation: 266
Default Re: PAWN Syntax and Compiler for Visual Studio Code

I really want to give this a shot, but I don't seem to find the extension
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 12/08/2017, 03:54 AM   #12
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 566
Reputation: 73
Default Re: PAWN Syntax and Compiler for Visual Studio Code

I think you downloaded the wrong one: https://code.visualstudio.com/?wt.mc_id=vscom_downloads
ISmokezU is offline   Reply With Quote
Old 12/08/2017, 04:18 AM   #13
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 647
Reputation: 82
Default Re: PAWN Syntax and Compiler for Visual Studio Code

@Eoussama: You have to download Visual Studio Code, not the IDE, I think thats what you downloaded.

@Chaser98: Very nice stuff. I haven't tried it out yet though. I'll be sure to add your link to the main topic asap then, cheers for creating it!
FreAkeD is offline   Reply With Quote
Old 12/08/2017, 04:57 PM   #14
HoussemGaming
Banned
 
Join Date: Jun 2017
Location: France
Posts: 197
Reputation: 10
Default Re: PAWN Syntax and Compiler for Visual Studio Code

When i create shortcut but when i launch it it don't create the .vscode folder
HoussemGaming is offline   Reply With Quote
Old 12/08/2017, 05:21 PM   #15
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 647
Reputation: 82
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Quote:
Originally Posted by HoussemGaming View Post
When i create shortcut but when i launch it it don't create the .vscode folder
Did you create the shortcut inside your project folder and open the .exe from there?
FreAkeD is offline   Reply With Quote
Old 13/08/2017, 04:12 PM   #16
iKarim
Gangsta
 
iKarim's Avatar
 
Join Date: Oct 2015
Posts: 583
Reputation: 139
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Amazing! Now I'll never open sublime text ever again.

---

Edit: after setting it up, looks like there's something to be fixed, basically when you type "settimerex" (or any other functions) it'll show you 2 versions, one with the auto complete and one without, this might be confusing, not sure how it could be fixed though.
iKarim is offline   Reply With Quote
Old 14/08/2017, 12:19 AM   #17
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 647
Reputation: 82
Default Re: PAWN Syntax and Compiler for Visual Studio Code

Quote:
Originally Posted by iKarim View Post
Amazing! Now I'll never open sublime text ever again.

---

Edit: after setting it up, looks like there's something to be fixed, basically when you type "settimerex" (or any other functions) it'll show you 2 versions, one with the auto complete and one without, this might be confusing, not sure how it could be fixed though.
Indeed, I'll do some research and see what I can find out to fix it .

-----

EDIT: I found a way you can show the snippets at the top, basically showing the other ones that don't enter parameters automatically at the bottom (http://imgur.com/wF8JnGv)

To do this, follow the steps below:

Go to File > Preferences > Settings. This should open the the 'User Settings.' Once there, copy and paste the following into the right hand side, NOT THE LEFT!:

PHP Code:
"editor.snippetSuggestions""top" 
Here's a picture of what it should look like (http://imgur.com/a/i3P6H).

Remember to have a trailing comma above if there's other settings you'd added, the last one doesn't need one (see the example pic above this message to see what it should look like.)

Once you'd done that, hit CTRL + S to save the file, then you can go ahead and close it. Head into any file and you should notice all the custom snippets should be appearing on the top (http://imgur.com/wF8JnGv).

Last edited by FreAkeD; 14/08/2017 at 10:48 AM.
FreAkeD is offline   Reply With Quote
Old 14/08/2017, 01:26 PM   #18
10MIN
Banned
 
Join Date: Jun 2017
Location: Clock4ever
Posts: 332
Reputation: 30
Default Re: PAWN Syntax and Compiler for Visual Studio Code

It seem that VS Code doesn't like YSI 4.0...
I get some errors when compiling it in VS Code , but in Pawno it works without errors... If I don't use YSI everything works fine...
10MIN is offline   Reply With Quote
Old 14/08/2017, 01:50 PM   #19
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,530
Reputation: 552
Default Re: PAWN Syntax and Compiler for Visual Studio Code

IIRC YSI requires -)+ flag to be set (and maybe -;+)
Misiur is offline   Reply With Quote
Old 14/08/2017, 03:25 PM   #20
10MIN
Banned
 
Join Date: Jun 2017
Location: Clock4ever
Posts: 332
Reputation: 30
Default Re: PAWN Syntax and Compiler for Visual Studio Code

@Misiur thanks, used this and now works:
Code:
d:\\Path_To_Compiler\\pawncc.exe =)+ -;+
10MIN 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 09:18 AM
Can someone make Pawn compiler for Visual Studio Code? DuyDang2412 Scripting Help 11 26/07/2017 12:21 PM
[Tutorial] Visual Studio like an compilator PAWN language Dystans Tutorials 9 17/02/2013 07:43 AM
Visual Studio as the development environment for PAWN Arca Scripting Help 7 28/07/2012 09:18 PM
PawnCC (Pawn Code Compiler) Crashes. Ash. Help Archive 4 28/07/2010 11:25 AM


All times are GMT. The time now is 05:23 PM.


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