SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 06/05/2009, 06:31 AM   #1
yom
Gangsta
 
Join Date: Jul 2006
Posts: 988
Reputation: 6
Default Tutorial: Script with Notepad++ !

This small tutorial explain how to use Notepad++ as a replacement for Pawno.

Many advantages, but one inconvenient: no functions list (yet). Still interested?


  • Download and install Dracoblue's Pawn syntax highlighter for Notepad++

  • Go into C:\Documents and Settings\<you>\Application Data\Notepad++\plugins\config

  • Open NppExec.ini and modify as follow (or delete all in the file and add this)
    Code:
    [Console]
    Visible=1
    ShowHelp=0
    Encoding=290
    SaveOnExecute=1
    CmdHistory=1
    SaveCmdHistory=1
    NoInternalMsgs=1
    CdCurDir=1
    [Restore]
    LastSelectedScript=1
    [ExitBox]
    I0="exit"
    [ConsoleOutputFilter]
    RecognitionMask0="%ABSFILE%(%LINE%) : warning*"
    RecognitionEffect0="+E 00 00 FF -I +B -U"
    RecognitionMask1="%ABSFILE%(%LINE%) : error*"
    RecognitionEffect1="+E FF 00 00 -I +B -U"
    RecognitionMask2="%ABSFILE%(%LINE%) : fatal error*"
    RecognitionEffect2="+E 00 00 00 -I +B -U"
  • Open or create (in the same folder of the previous step) npes_saved.txt and add this:
    Code:
    ::pawncc
    <path to pawncc.exe> "$(FULL_CURRENT_PATH)" -;
    //In my case it's: E:\GTA San Andreas\samp_server_02X\pawno\pawncc.exe "$(FULL_CURRENT_PATH)" -;
  • You can change the shortcut for compiling (by default, CTRL+F6) by going in Settings -> Shorcut mapper -> Plugins commands and change the shortcut of Direct Execute Previous to F5 or whatever you want.

  • Done! Have fun.



yom is offline  
Old 06/05/2009, 06:59 AM   #2
Joe Staff
High-roller
 
Join Date: Aug 2007
Posts: 2,596
Reputation: 379
Default Re: Tutorial: Script with Notepad++ !

Cool. Good for someone who prefers the look and feel of notepad++ in their bed in the morning.

Honestly though I don't see the point, but good job none-the-less.
Joe Staff is offline  
Old 06/05/2009, 07:15 AM   #3
Burridge
High-roller
 
Join Date: Nov 2008
Location: England
Posts: 1,842
Reputation: 52
Default Re: Tutorial: Script with Notepad++ !

This...could come in handy, as my school's computers have blocked pawn, i might be able to sneak my coding my using this.

Cheers
Burridge is offline  
Old 06/05/2009, 10:17 AM   #4
Dabombber
Big Clucker
 
Join Date: May 2006
Posts: 79
Reputation: 1
Default Re: Tutorial: Script with Notepad++ !

Sweet I didn't know about ConsoleOutputFilter. Using c++ or c might be better than adding custom languages as it's similar enough for the function list to work. I made an API for function completion a while ago, just go to "...\Notepad++\plugins\APIs" and replace either the c or c++ API with http://pastebin.com/f14b99c15.

To compile the same way as pawno:
Code:
NPP_SAVE
<path to pawncc.exe> "$(FULL_CURRENT_PATH)" -;:+ -(:+ -o:"$(CURRENT_DIRECTORY)\$(NAME_PART).amx"

Dabombber is offline  
Old 06/05/2009, 02:49 PM   #5
yom
Gangsta
 
Join Date: Jul 2006
Posts: 988
Reputation: 6
Default Re: Tutorial: Script with Notepad++ !

Thanks for your contribution Dabombber
yom is offline  
Old 06/05/2009, 06:07 PM   #6
Danut
Gangsta
 
Join Date: Aug 2008
Posts: 534
Reputation: 0
Default Re: Tutorial: Script with Notepad++ !

i don't have this

C:\Documents and Settings\<you>\Application Data\Notepad++\plugins\config

I have just :
Desktop ; Favorites ; My Documets ; Start Menu
Danut is offline  
Old 06/05/2009, 06:14 PM   #7
Rks25
High-roller
 
Join Date: Jun 2007
Posts: 1,071
Reputation: 4
Default Re: Tutorial: Script with Notepad++ !

******, lots of results.
Rks25 is offline  
Old 06/05/2009, 07:04 PM   #8
yom
Gangsta
 
Join Date: Jul 2006
Posts: 988
Reputation: 6
Default Re: Tutorial: Script with Notepad++ !

Quote:
Originally Posted by MoroJr™
i don't have this

C:\Documents and Settings\<you>\Application Data\Notepad++\plugins\config

I have just :
Desktop ; Favorites ; My Documets ; Start Menu
It's a hidden folder
yom is offline  
Old 06/05/2009, 09:58 PM   #9
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: Tutorial: Script with Notepad++ !

To show hidden folders, in your Explorer (The thing that lets you view files and folders and stuff) click: Tools -> Folder Options -> View - Thank mark the 'Show hidden files and folders' button. OR you can access hidden folders by typing it in to the address bar. So for example go to the <you> folder and in the address bar add 'Application Data\Notepad++\plugins\config' and it should bring you there
lavamike is offline  
Old 06/05/2009, 10:22 PM   #10
ferriswheel
Little Clucker
 
Join Date: Oct 2007
Posts: 43
Reputation: 0
Default Re: Tutorial: Script with Notepad++ !

Great! I greatly dislike the indentation system in PAWNO and prefer the look of Notepad ++. So thanks for this.
ferriswheel is offline  
 

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
I need a tutorial script for RP Tony_Prince Help Archive 1 29/12/2009 07:00 PM
[REQ] Need Tutorial script SanMarinoRP Help Archive 3 10/10/2009 08:38 PM
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 04:17 AM.


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