Jump to content

Recommended Posts

Posted

Ce face? 

Atunci cand faci o functie care nu este inclusa nativ in pawn

de ex:

function InsertEmail(name[],fromname[],content[],user,from,online);

Mereu vei scrie tot, sau poate uiti argumentele functiei daca sunt multe

Si atunci cand vei scrie insertemail iti apare direct auto-complete si este mai rapid si mai usor

de la image.png.5e0c3d1e2378cd47b5a3ce42a2cbe904.png

la image.png.3f0e839185ac1acd114d541b71abf11f.png 

Descarcati fisierul, il adaugi in Sublime > Package > User

Ca sa gasiti folderul bun, mergeti in sublime > apasati pe Preferences > Browse Packages... 

image.png.636519ea7d7374efe19742f95f8a5e23.png

image.png.5dd1d3d6cbfd2502c09ab57ac80bcb35.png

Apoi apasati pe folderul User, iar acolo introduceti fisierul

image.png.8b21067567bc5eabd6acff9a3161204f.png

 

Cerinte: Trebuie sa aveti instalat pawn pe sublime, daca folositi altceva trebuie sa modificati "scope", din fisier.

image.png.3bc1d1e87c1c0f708e7c69ec90add19b.png

default este "scope": "source.pawn",  modificati acel pawn cu ce folositi

Auto-Complete incluse: 

CMD
function
switch
hideplayerdialog
SetPlayerHealthEx
SetPlayerCheckpointEx
SetPlayerArmourEx
GivePlayerWeaponEx
GetDistanceBetweenPoints
InsertEmail
StartTimer
ObtainTimer
SetPlayerPosEx
ShowPlayerDialogEx

Momentan sunt doar cateva, puteti pune ce aveti nevoie doar agauti un nou snippet in cmds.sublime-completions

{
            "trigger": "functie", // aici este cuvantul care face trigger
            "annotation": "basic function", // doar o descriere, nu afecteaza cu nimic daca modifici
            "contents": "functiesmechera(playerid, admin[], color, xxx, Float:x);", // aici este output-ul
            "kind": "snippet",
            "details": "Auto-Complete" // doar o descriere, nu afecteaza cu nimic daca modifici
}

 

image.thumb.png.0c226733be060b67a26d431e481ab3cf.png

virustotal: VirusTotal - File - 9fd315c7f68b75d15deb772853ac9e95c975b6d02dcfd741f133f4b0d128995d

download: https://www.mediafire.com/file/w9ygfljqed8zmtc/cmds.sublime-completions/file

 

Clar nu e bine facut, dar sper sa va ajute🙂

  • 2 weeks later...
Posted (edited)
On 1/7/2023 at 11:48 PM, nobilzeus said:

Ce face? 

Atunci cand faci o functie care nu este inclusa nativ in pawn

de ex:

function InsertEmail(name[],fromname[],content[],user,from,online);

Mereu vei scrie tot, sau poate uiti argumentele functiei daca sunt multe

Si atunci cand vei scrie insertemail iti apare direct auto-complete si este mai rapid si mai usor

de la image.png.5e0c3d1e2378cd47b5a3ce42a2cbe904.png

la image.png.3f0e839185ac1acd114d541b71abf11f.png 

Descarcati fisierul, il adaugi in Sublime > Package > User

Ca sa gasiti folderul bun, mergeti in sublime > apasati pe Preferences > Browse Packages... 

image.png.636519ea7d7374efe19742f95f8a5e23.png

image.png.5dd1d3d6cbfd2502c09ab57ac80bcb35.png

Apoi apasati pe folderul User, iar acolo introduceti fisierul

image.png.8b21067567bc5eabd6acff9a3161204f.png

 

Cerinte: Trebuie sa aveti instalat pawn pe sublime, daca folositi altceva trebuie sa modificati "scope", din fisier.

image.png.3bc1d1e87c1c0f708e7c69ec90add19b.png

default este "scope": "source.pawn",  modificati acel pawn cu ce folositi

Auto-Complete incluse: 

CMD
function
switch
hideplayerdialog
SetPlayerHealthEx
SetPlayerCheckpointEx
SetPlayerArmourEx
GivePlayerWeaponEx
GetDistanceBetweenPoints
InsertEmail
StartTimer
ObtainTimer
SetPlayerPosEx
ShowPlayerDialogEx

Momentan sunt doar cateva, puteti pune ce aveti nevoie doar agauti un nou snippet in cmds.sublime-completions

{
            "trigger": "functie", // aici este cuvantul care face trigger
            "annotation": "basic function", // doar o descriere, nu afecteaza cu nimic daca modifici
            "contents": "functiesmechera(playerid, admin[], color, xxx, Float:x);", // aici este output-ul
            "kind": "snippet",
            "details": "Auto-Complete" // doar o descriere, nu afecteaza cu nimic daca modifici
}

 

image.thumb.png.0c226733be060b67a26d431e481ab3cf.png

virustotal: VirusTotal - File - 9fd315c7f68b75d15deb772853ac9e95c975b6d02dcfd741f133f4b0d128995d

download: https://www.mediafire.com/file/w9ygfljqed8zmtc/cmds.sublime-completions/file

 

Clar nu e bine facut, dar sper sa va ajute🙂

Gg

Edited by rgb
Gg

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.