[Server] make vscode compiler rewrite actual file - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12) --- Thread: [Server] make vscode compiler rewrite actual file (/showthread.php?tid=2286) |
make vscode compiler rewrite actual file - hiwyn - 2022-04-23 everytime i press F5 to compile a filterscript or a gamemode it creates the .amx, but creates where i open the vscode i mean, if i did: cd sampserver && code . if i open a file MISSIONS.pwn in sampserver/gamemodes it will generate the amx in /home/sampserver instead of /home/sampserver/gamemodes there is a way to instead of generate the amx there it get the file path (.pwn i'm editing) and creates the amx there rewriting the actual? its boring, every time i edit a lib or a gm or a filterscript i got to move the amx after finish I'm compiling it on linux with this: https://github.com/pawn-lang/compiler/releases And with this .vscode/tasks.json: Code: { RE: make vscode compiler rewrite actual file - hiwyn - 2022-05-12 just add "'-D${fileDirname}'", on task.json |