SA-MP Forums Archive
Syntax completion ("SHIFT + (") - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Syntax completion ("SHIFT + (") (/showthread.php?tid=619032)



Syntax completion ("SHIFT + (") - NeXoR - 12.10.2016

Hey guys, let's say I have a function
PHP код:
AddBan(playeridplayername[], bannername[], banreason[], bannedip[]) 
How can I do that when I type AddBan and hit SHIFT+( it will show me the requested parameters like in any other in-built function ?


Re: Syntax completion ("SHIFT + (") - Kaliber - 12.10.2016

Write this over the function and put the function in a seperate include:

PHP код:
/*
    native AddBan(playerid, playername[], bannername[], banreason[], bannedip[]);
*/ 
And then restart Pawn


Re: Syntax completion ("SHIFT + (") - Crayder - 12.10.2016

Also note, it has to be in an include for this to work in Pawno.


Another reason you shouldn't be using Pawno.


Re: Syntax completion ("SHIFT + (") - azzerking - 12.10.2016

Yeah I never liked Pawno, its too limited in its functionality, and if your someone like me who writes in multiple different scripting and programming languages, it becomes annoying to have to use different editors.

This is why I use Sublime Text, it has all the basic stuff I need as well as a community that provides plugin to make coding much easier.

Go try the Sublime Text trial, or try Atom, Atom is similar to Sublime in many ways and is free. However I think SouthClaw made a plugin for Sublime that is only supported by Sublime. So thats one reason I myself have never gone to Atom.

Give it a shot, or try ******* and see what others may say.