Jump to content

Pawno pentru SA-MP in Notepad++


hopingsteam

Recommended Posts

Sursa http://forum.sa-mp.com -> Slice

autocomplete.gif

Am ales sa va prezint si voua cum lucrez eu in Pawno, folosing Notepad++ !

Puteti sa vedeti o parte din facilitatile Notepad++ (auto-complete) in poza de mai sus !

Pentru a putea folosi si voi Pawno in Notepad++ trebuie sa urmati cu atentie urmatorii pasi:

1. Downloadam Notepad++ de aici: http://notepad-plus-plus.org/

2. Dupa ce l-am instalat intram in My Computer (Computer pentru Windows 7 / Vista)

3. Scriem in casuta de sus

%appdata%\Notepad++

[img width=500 height=363]http://img827.imageshack.us/img827/9552/unledmqf.png

4. Downloadam userDefineLang.xml de aici: http://pastebin.com/x6UVk2i9 si il punem in folderul deshis la pasul 3 !

5. Acum asociem extensiile .pwn cu Notepad++ ! Deschidem Notepad++ si intram in Settings > Preferences si selectam tab-ul "File Association" ! Mai departe dam click pe costumize (sub Suported exts) si apasam pe sageata , iar apoi pe Close !

6. Acum vom avea nevoie de un fisier API pentru a putea sa utilizam functia auto-complete ! Downloadam PAWN.xml de aici: http://pastebin.com/1NTn6sAN si il punem in C:\Program Files\Notepad++\plugins\APIs (sau unde ati instalat voi programul)

7. Acum intram din nou in Settings > Preferences si selectam tab-ul Backup / Auto-Completiton ! Bifam tot la fel ca in imaginea de mai jos si schimbam cifra 1 cu cifra 3 (daca vrei sa vezi auto-complete instant, lasa cifra 1), apoi apasam pe Close !

[img width=500 height=293]http://img802.imageshack.us/img802/9123/unled3x.png

8. Pentru urmatorul pas avem nevoie de un plugin numit NppExec ! Intram in Plugins > Plugin > Show Plugin Manger ! Cautam NppExec si il bifam, apoi dam click pe Install ! Dupa install retartam programul !

9. Acum (dupa ce am restartat programul) intram in Plugins > NppExec > Execute si scriem urmatoarea linie:

npp_save

cd $(CURRENT_DIRECTORY)

"D:\samp03\pawno\pawncc.exe" "$(FILE_NAME)" -; -(

[img width=500 height=292]http://img846.imageshack.us/img846/2451/unled4t.png

D:\samp03\pawno\pawncc.exe - Schimbati cu locatia fisierului pawncc.exe din calculatorul dvs.

Dam apoi click pe Save si scriem PAWN Compile, apoi dam click pe Save si OK !

10. Acum intram din nou in Plugins > NppExec si bifam "No internal messages", dupa care dam click pe Advanced Obtions ! Selectam la Associated script: PAWN Compile si apasam pe Add/Modify apoi pe OK ! Acum restartam din nou Notepad++

[img width=500 height=291]http://img835.imageshack.us/img835/1108/unled5wr.png

[img width=500 height=192]http://img339.imageshack.us/img339/6002/unled6p.png

11. Dupa restart-ul programului intram in Settings > Shortcut Mapper si selectam tab-ul Plugin commands ! Cautam Pawn Compile si selectam tastele pe care apasam pentru a converti in .amx (eu am slectat Shift+F7, voi selectati dupa bunul plac !)

SFAT: Cautati PAWN Compile intre liniile 30 - 50 ! Apasam pe OK, apoi pe Close si GATA !

[img width=500 height=497]http://img545.imageshack.us/img545/3707/unled7s.png

Sursa: sa-mp.com

! ! ! Eu doar am tradus si am mai pus explicatii + am adus noi poze !

PS: Am sters codul pe care il aveam scris in "spate" !

PS 2: Click pe imagini, ele se maresc !

Link to comment
Share on other sites

Am scris:

npp_save
cd $(CURRENT_DIRECTORY)
"D:\Jocuri\Samp\Server de Sa-mp GodFather\pawno\pawncc.exe" "$(FILE_NAME)" -; -(
Il salvez, si la 'Console' primesc aceasta eroare:
NPP_SAVE: C:\Program Files\Notepad++\change.log
CD: C:\Program Files\Notepad++
Current directory: C:\Program Files\Notepad++
"D:\Jocuri\Samp\Server de Sa-mp GodFather\pawno\pawncc.exe" "change.log" -; -(
Process started >>>
change.log(1) : error 010: invalid function or declaration
change.log(3) : error 010: invalid function or declaration
change.log(8) : error 010: invalid function or declaration
change.log(10) : error 010: invalid function or declaration
change.log(15) : error 010: invalid function or declaration
change.log(17) : error 010: invalid function or declaration
change.log(27) : error 010: invalid function or declaration
change.log(29) : error 010: invalid function or declaration
change.log(38) : error 010: invalid function or declaration
change.log(40) : error 010: invalid function or declaration
change.log(49) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
<<< Process finished.
================ READY ================

Am gresit eu ceva ?:-??

Link to comment
Share on other sites

  • 6 months later...

Am updatat userDefineLang.xml si PAWN.xml pentru 0.3d....

Puteti updata si voi First Post ?


PS: La Auto-Completare toate functiile sunt aranjate in Ordine Alfabetica deci nu va ingrijorati ;)

Oricum ei nu stiu alfabetul, puteai sa pui Z-ul primul, nu observau. =]]

Am updatat eu primul post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.