[Pawn] [FIXED] how create new native functions can be suggested by the autotext system - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] [FIXED] how create new native functions can be suggested by the autotext system (/showthread.php?tid=1824) |
[FIXED] how create new native functions can be suggested by the autotext system - PutuSuhartawan - 2021-03-30 How do I create new native functions that can be suggested to the autotext system later? so far I can only walk with #define only. FIXED [ First Install the All Autocomplete - Packages - Package Control ] RE: Help! how create new native functions can be suggested by the autotext system - Kwarde - 2021-03-30 Native functions are functions inside the host application. Has nothing to do with creating a function list. Just so happens that pawno does this, but it's not what they are intended for (just making sure you know what native functions are). To truly create one you'd need to create a plugin. https://raw.githubusercontent.com/compuphase/pawn/66e67291326b193045e52e4d6bcb51663260d6c3/doc/pawn-lang.pdf Quote:The only means that a pawn program has to manipulate objects in the host application is by calling subroutines, so called ?native functions?, that the host application provides. Anyway, now the correct way to create custom function (snippet) list: You'll need a .code-snippets file in your .vscode directory for that. Syntax is as follows: Code: { Code: { More (and better) information about snippets here: https://code.visualstudio.com/docs/editor/userdefinedsnippets |