SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/11/2016, 07:42 PM   #461
Liberation
Little Clucker
 
Join Date: Jan 2016
Location: United States
Posts: 10
Reputation: 0
Default Re: PAWN for SA-MP in Notepad++

I'm attempting to update and associate (not sure if that's what its technically called) the functions from newer versions of SA-MP with userDefineLang.xml. In addition to functions, I'm trying to add the defines as well.

These pages are the ones I'd need, seeing as this existing list was made for 0.3x, correct?

https://wiki.sa-mp.com/wiki/Category:Added_in_0.3z
https://wiki.sa-mp.com/wiki/Category:Added_in_0.3.7

Are there also Wiki pages for the new defines? If so, I can't seem to find them. I'm hoping there is and I don't have to sort through the includes to pick them out manually. I'm thinking that what iLearner and Sew_Sumi were talking about is what I'm also attempting to do but I'm still just not sure what the best way to do this would be unless someone already has updated files for the latest versions that include the new functions and defines.
Liberation is offline   Reply With Quote
Old 24/11/2016, 11:27 PM   #462
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,448
Reputation: 525
Default Re: PAWN for SA-MP in Notepad++

CodeParser does new additions automatically. http://forum.sa-mp.com/showthread.php?t=512798

It makes the entire xml file for you.
Sew_Sumi is offline   Reply With Quote
Old 15/01/2017, 05:52 AM   #463
Tylerss
Banned
 
Join Date: Dec 2016
Location: http://pastebin.com/ZeeVLTcd
Posts: 3
Reputation: 2
Default Re: PAWN for SA-MP in Notepad++

Not a fan, but really nice tutorial!
Tylerss is offline   Reply With Quote
Old 31/01/2017, 11:16 AM   #464
vpontin
Little Clucker
 
vpontin's Avatar
 
Join Date: Dec 2010
Location: Someplace...
Posts: 24
Reputation: 0
Default Re: PAWN for SA-MP in Notepad++

Is there a way to automatically tell pawncc where the amx file should be stored?

I have a project with two folders: one for sources (src) and other with the compiled scripts (bin), both have the same subfolder structure, so i want to tell pawncc to output the amx in bin folder.

For clarify, the desired folder structure is this:

Code:
Root folder
├── src
│   ├── filterscripts
│   │   ├── file1.pwn
│   │   └── file2.pwn
│   └── gamemodes
│       └── gm_main.pwn
└── bin
     ├── filterscripts
     │   ├── file1.amx
     │   └── file2.amx
     └── gamemodes
         └── gm_main.amx
What i want is when i compile a .pwn file, the resulting .amx should go to the equivalent original subfolder but in bin.
Is possible to do this only using NppExec?
vpontin is offline   Reply With Quote
Old 18/05/2017, 06:16 PM   #465
Zorono
Huge Clucker
 
Zorono's Avatar
 
Join Date: Dec 2015
Location: Africa, Egypt, Alexandria
Posts: 353
Reputation: 30
Default Re: PAWN for SA-MP in Notepad++

i can't find this step any suggestion please
Zorono is offline   Reply With Quote
Old 19/05/2017, 11:16 AM   #466
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,448
Reputation: 525
Default Re: PAWN for SA-MP in Notepad++

Quote:
Originally Posted by Zorono View Post
i can't find this step any suggestion please
NPPExec is a plugin you need to install. Use the plugin manager, in that same menu, to install it.
Sew_Sumi is offline   Reply With Quote
Old 20/05/2017, 06:39 PM   #467
Zorono
Huge Clucker
 
Zorono's Avatar
 
Join Date: Dec 2015
Location: Africa, Egypt, Alexandria
Posts: 353
Reputation: 30
Default Re: PAWN for SA-MP in Notepad++

it says no Updates avaible any suggestion please
here is a screenshots

Edit: the proplem was cuased by my internet connection. it worked thanks
+repped
Attached Images
File Type: png Capture.PNG (14.8 KB, 17 views)
File Type: png Capture1.PNG (2.5 KB, 7 views)

Last edited by Zorono; 24/05/2017 at 04:56 PM.
Zorono is offline   Reply With Quote
Old 17/01/2018, 07:28 AM   #468
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 175
Reputation: 20
Default Re: PAWN for SA-MP in Notepad++

how do you change the coloring, i wan't it in dark background
SeanDenZYR is offline   Reply With Quote
Old 17/01/2018, 07:54 AM   #469
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,448
Reputation: 525
Default Re: PAWN for SA-MP in Notepad++

Quote:
Originally Posted by SeanDenZYR View Post
how do you change the coloring, i wan't it in dark background
There's a themes option in the menu, but IIRC it is rather tricky, and it's a one way trip in many cases (You'll find the setting somewhere but I think the multiple themes are a nightmare to get going so you'll end up just using 1)


(Settings, Style configurator) but I think the xml file that you use to put SA-MP pawn in, contains the color codes and such in it, and that overrides the styles.

userLangthingo.xml has this section...

Code:
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="KEYWORD1" styleID="5" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="KEYWORD2" styleID="6" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="KEYWORD3" styleID="7" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1"/>
<WordsStyle name="KEYWORD4" styleID="8" fgColor="0000C0" bgColor="FFFFFF" fontName="" fontStyle="1"/>
<WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="DELIMINER1" styleID="14" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="DELIMINER2" styleID="15" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0"/>
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/>
</Styles>
Sew_Sumi is offline   Reply With Quote
Old 01/06/2018, 09:11 AM   #470
Yousha
Banned
 
Join Date: May 2013
Posts: 118
Reputation: 7
Lightbulb Re: PAWN for SA-MP in Notepad++

Quote:
Put npp_save on the first line if you want to save the file before compiling automatically (lazy motherfucker..).
Code:
cd $(CURRENT_DIRECTORY)
"C:\Program Files (x86)\PAWN Compiler\pawncc.exe" "$(FILE_NAME)" -; -(

Just a minor suggestion:

Code:
cd $(CURRENT_DIRECTORY)
"C:\Program Files (x86)\PAWN Compiler\pawncc.exe" "$(FILE_NAME)" "-d3" "-r" "-o2" "-v3" "-o$(NAME_PART).amx"
Or even:

Code:
cd $(CURRENT_DIRECTORY)
"..\pawno\pawncc.exe" "$(FILE_NAME)" "-d3" "-r" "-o2" "-v3" "-o$(NAME_PART).amx"
This is more clear and better.
Yousha 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
PAWN plugin for Notepad++ ettans Help Archive 5 18/05/2011 05:23 PM
Tutorial: Script with Notepad++ ! yom Help Archive 12 27/01/2011 09:41 AM
How to make something in pawno respond with a notepad? anonymoushacker Help Archive 3 31/07/2009 11:31 PM
Notepad++ plugin help johnmeikle33 Help Archive 3 11/03/2009 09:04 PM


All times are GMT. The time now is 02:02 PM.


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