• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Compile GM with VSCODE on Linux
#1
Is anybody compile?a SAMP gamemode with VSCODE on Linux?

If anybody know how to do,?pls post here
  Reply
#2
sampctl p build --platform linux
Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!


  Reply
#3
(2021-04-03, 09:55 AM)Awide Wrote: sampctl p build --platform linux



should i install a whole lib just to compile my gm on vscode on linux?

there is no other way? without sampctl?
  Reply
#4
Well if you are going to script many new features I totally recommend sampctl, because it will help greatly in the long run. I use it to compile on Linux successfully.



You should be able to compile without sampctl though. Check out this: https://github.com/pawn-lang/compiler
Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!


  Reply
#5
I've create a new folder pawno with the includes and that files from https://github.com/pawn-lang/compiler/re...g/v3.10.10



Code:
ls pawno

bin  include  lib  pawnc-3.10.10-linux (1).tar.gz



ls pawno/bin

Code:
pawncc  pawndisasm



ls pawno/lib

Code:
libpawnc.so



---





So i tried:

keybindings.json

Code:
{ "key": "f5", "command": "workbench.action.tasks.build" }



sampserver/.vscode/task.json

Code:
{

  "version": "1.0.0",

  "tasks": [

    {

      "label": "build",

      "type": "shell",

      "command": "${workspaceRoot}/pawno/bin/pawncc",

      "args": [

        "${file}",

        "-D${workspaceRoot}/gamemodes",

        "-i${workspaceRoot}/pawno/include",

        "'-;'",

        "'-('",

        "'-d3'"

      ],

      "group": {

        "kind": "build",

        "isDefault": true

      },

      "isBackground": false,

      "presentation": {

        "reveal": "always",

        "panel": "dedicated"

      },

      "problemMatcher": "$pawncc"

    }

  ]

}



---



but when i try to press F5 in new.pwn:



it shows this:

Code:
> Executing task: /home/anty/Documents/sampserver/pawno/bin/pawncc /home/anty/Documents/sampserver/gamemodes/new.pwn -D/home/anty/Documents/sampserver/gamemodes -i/home/anty/Documents/sampserver/pawno/include '-;' '-(' '-d3' <



Pawn compiler 3.10.20150531                     Copyright (c) 1997-2006, ITB CompuPhase



Usage:   pawncc <filename> [filename...] [options]



Options:

         -A<num>  alignment in bytes of the data segment and the stack

         -a       output assembler code

         -C[]  compact encoding for output file (default=)

         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1

         -d<num>  debugging level (default=-d1)

             0    no symbolic information, no run-time checks

             1    run-time checks, no symbolic information

             2    full debug information and dynamic checking

             3    same as -d2, but implies -O0

         -e<name> set name of error file (quiet compile)

         -i<name> path for include files

         -l       create list file (preprocess only)

         -o<name> set base name of (P-code) output file

         -O<num>  optimization level (default=-O1)

             0    no optimization

             1    JIT-compatible optimizations only

             2    full optimizations

         -p<name> set name of "prefix" file

         -r[name] write cross reference report to console or to specified file

         -S<num>  stack/heap size in cells (default=4096)

         -s<num>  skip lines from the input file

         -t<num>  TAB indent size (in character positions, default=8)

         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)

         -w<num>  disable a specific warning by its number

         -X<num>  abstract machine size limit in bytes

         -XD<num> abstract machine data/stack size limit in bytes

         -Z[]  run in compatibility mode (default=-)

         -\       use '\' for escape characters

         -^       use '^' for escape characters

         -;[]  require a semicolon to end each statement (default=-)

         -([]  require parantheses for function invocation (default=-)

         sym=val  define constant "sym" with value "val"

         sym=     define constant "sym" with value 0



Options with a value may optionally separate the value from the option letter

with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"

and "-d:0" are all equivalent.

The terminal process terminated with exit code: 3



Terminal will be reused by tasks, press any key to close it.



what i'm doing wrong?
  Reply
#6
bump!!
  Reply
#7
bumpp
  Reply
#8
The f**k y'all with this useless spam..

Install Southclaw's Pawn Tools (code extension) and hit CTRL SHIFT B and choose sampctl

Edit: Or u can create a new build system, also ctrl shift b
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#9
(2021-06-17, 10:08 PM)Pinch Wrote: The f**k y'all with this useless spam..

Install Southclaw's Pawn Tools (code extension) and hit CTRL SHIFT B and choose sampctl

Edit: Or u can create a new build system, also ctrl shift b


I'm trying:
(2021-04-20, 06:20 AM)annety Wrote:
I've create a new folder pawno with the includes and that files from https://github.com/pawn-lang/compiler/re...g/v3.10.10

Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]ls pawno[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]bin? include? lib? pawnc-3.10.10-linux (1).tar.gz[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


ls pawno/bin
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]pawncc? pawndisasm[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


ls pawno/lib
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]libpawnc.so[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


---


So i tried:
keybindings.json
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]{ "key": "f5", "command": "workbench.action.tasks.build" }[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


sampserver/.vscode/task.json
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]{[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? "version": "1.0.0",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? "tasks": [[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "label": "build",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "type": "shell",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "command": "${workspaceRoot}/pawno/bin/pawncc",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "args": [
? ? ? ? "${file}",
? ? ? ? "-D${workspaceRoot}/gamemodes",
? ? ? ? "-i${workspaceRoot}/pawno/include",
? ? ? ? "'-;'",
? ? ? ? "'-('",
? ? ? ? "'-d3'"
? ? ? ],[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "group": {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "kind": "build",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "isDefault": true[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? },[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "isBackground": false,[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "presentation": {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "reveal": "always",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "panel": "dedicated"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? },[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "problemMatcher": "$pawncc"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? }[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ][/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]}[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


---

but when i try to press F5 in new.pwn:

it shows this:
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]> Executing task: /home/anty/Documents/sampserver/pawno/bin/pawncc /home/anty/Documents/sampserver/gamemodes/new.pwn -D/home/anty/Documents/sampserver/gamemodes -i/home/anty/Documents/sampserver/pawno/include '-;' '-(' '-d3' <[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Pawn compiler 3.10.20150531? ? ? ? ? ? ? ? ? ? Copyright (c) 1997-2006, ITB CompuPhase[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Usage:? pawncc <filename> [filename...] [options][/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Options:[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -A<num>? alignment in bytes of the data segment and the stack[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -a? ? ? output assembler code[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -C[]? compact encoding for output file (default=)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -c<name> codepage name or number; e.g. 1252 for Windows Latin-1[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -d<num>? debugging level (default=-d1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 0? ? no symbolic information, no run-time checks[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 1? ? run-time checks, no symbolic information[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 2? ? full debug information and dynamic checking[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 3? ? same as -d2, but implies -O0[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -e<name> set name of error file (quiet compile)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -i<name> path for include files[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -l? ? ? create list file (preprocess only)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -o<name> set base name of (P-code) output file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -O<num>? optimization level (default=-O1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 0? ? no optimization[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 1? ? JIT-compatible optimizations only[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 2? ? full optimizations[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -p<name> set name of "prefix" file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -r[name] write cross reference report to console or to specified file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -S<num>? stack/heap size in cells (default=4096)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -s<num>? skip lines from the input file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -t<num>? TAB indent size (in character positions, default=8)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -v<num>? verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -w<num>? disable a specific warning by its number[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -X<num>? abstract machine size limit in bytes[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -XD<num> abstract machine data/stack size limit in bytes[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -Z[]? run in compatibility mode (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -\? ? ? use '\' for escape characters[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -^? ? ? use '^' for escape characters[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -;[]? require a semicolon to end each statement (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -([]? require parantheses for function invocation (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? sym=val? define constant "sym" with value "val"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? sym=? ? define constant "sym" with value 0[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Options with a value may optionally separate the value from the option letter[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]and "-d:0" are all equivalent.[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]The terminal process terminated with exit code: 3[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Terminal will be reused by tasks, press any key to close it.[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


what i'm doing wrong?



But i'm doing something wrong and idk what to do, but i bet u don't do too
Thats why i'm asking to someone with more experience to help
  Reply
#10
For starters, I believe you have to escape the semicolon and bracket.
  Reply
#11
Double posting here, but I started using pawncc on my Linux distro again (last time it wouldn't work, no idea why (multilib was on)).
This is what I'm using:
Code:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "/usr/bin/pawncc",
            "args": ["${file}", "\"-;\"", "\"-(\"", "-i\"/home/kevin/.pawno/includes/\""],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "isBackground": false,
            "presentation":{
                "reveal": "silent",
                "clear": false,
                "panel": "dedicated"
            },
            "problemMatcher": [
                {
                    "base":"$pawncc",
                    "fileLocation": "relative"
                }
            ]
        }
    ]
}

Note that you should change:
- Path to your pawncc binary (although you really should place it in /usr/bin, thus you should not actually change this here)
- Path to your includes directory
- Eventual extra compile parameters. My script handles all the other parameters (depening on what environment it's being compiled on)
  Reply
#12
(2021-07-10, 09:47 AM)Kwarde Wrote: Double posting here, but I started using pawncc on my Linux distro again (last time it wouldn't work, no idea why (multilib was on)).

This is what I'm using:

Code:
{

? ? // See https://go.microsoft.com/fwlink/?LinkId=733558

? ? // for the documentation about the tasks.json format

? ? "version": "2.0.0",

? ? "tasks": [

? ? ? ? {

? ? ? ? ? ? "label": "build",

? ? ? ? ? ? "type": "shell",

? ? ? ? ? ? "command": "/usr/bin/pawncc",

? ? ? ? ? ? "args": ["${file}", "\"-;\"", "\"-(\"", "-i\"/home/kevin/.pawno/includes/\""],

? ? ? ? ? ? "group": {

? ? ? ? ? ? ? ? "kind": "build",

? ? ? ? ? ? ? ? "isDefault": true

? ? ? ? ? ? },

? ? ? ? ? ? "isBackground": false,

? ? ? ? ? ? "presentation":{

? ? ? ? ? ? ? ? "reveal": "silent",

? ? ? ? ? ? ? ? "clear": false,

? ? ? ? ? ? ? ? "panel": "dedicated"

? ? ? ? ? ? },

? ? ? ? ? ? "problemMatcher": [

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? "base":"$pawncc",

? ? ? ? ? ? ? ? ? ? "fileLocation": "relative"

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ]

? ? ? ? }

? ? ]

}



Note that you should change:

- Path to your pawncc binary (although you really should place it in /usr/bin, thus you should not actually change this here)

- Path to your includes directory

- Eventual extra compile parameters. My script handles all the other parameters (depening on what environment it's being compiled on)



I've tried to use your task

but in the output shows:

Code:
Error: the description can't be converted into a problem matcher:

{

? ? "base": "$pawncc",

? ? "fileLocation": "relative"

}



And when i try to compile it shows

in the terminal it shows

3811 Warnings.



but it had only 5 before :O



some warnings are too strange



like this:

Code:
warning 239: literal array/string passed to a non-const parameter



on this line

Code:
SetTimerEx("SalveHome", 10, false, "i", id);



form this function

Code:
public SalveHome(houseid) {



and it is not creating the GM.amx



i'm doing something wrong?
  Reply
#13
See: https://github.com/pawn-lang/compiler/wi...orrectness

Appearantly those warnings were disabled by -however/wherever you compiled before-.
  Reply
#14
(2021-09-29, 07:22 PM)Kwarde Wrote: See: https://github.com/pawn-lang/compiler/wi...orrectness

Appearantly those warnings were disabled by -however/wherever you compiled before-.



I'll take a look



But its not even creating the .amx

Or this is creating in somewhere else?



About the warning

It's giving the warning
Code:
warning 239: literal array/string passed to a non-const parameter

In lines like:

Code:
SendRconCommand("password 0");



ApplyAnimation(playerid, "PED", "handsup", 4.1, 0, 0, 0, 1, 0, 1);

Shouldn't i somehow put the compiler to ignore this specific warning?
  Reply
#15
(2021-10-02, 12:27 PM)hiwyn Wrote:
(2021-09-29, 07:22 PM)Kwarde Wrote: See: https://github.com/pawn-lang/compiler/wi...orrectness

Appearantly those warnings were disabled by -however/wherever you compiled before-.



I'll take a look



But its not even creating the .amx

Or this is creating in somewhere else?



About the warning

It's giving the warning
Code:
warning 239: literal array/string passed to a non-const parameter

In lines like:

Code:
SendRconCommand("password 0");



ApplyAnimation(playerid, "PED", "handsup", 4.1, 0, 0, 0, 1, 0, 1);

Shouldn't i somehow put the compiler to ignore this specific warning?



bump
  Reply
#16
(2021-10-06, 11:39 AM)hiwyn Wrote:
(2021-10-02, 12:27 PM)hiwyn Wrote:
(2021-09-29, 07:22 PM)Kwarde Wrote: See: https://github.com/pawn-lang/compiler/wi...orrectness

Appearantly those warnings were disabled by -however/wherever you compiled before-.



I'll take a look



But its not even creating the .amx

Or this is creating in somewhere else?



About the warning

It's giving the warning
Code:
warning 239: literal array/string passed to a non-const parameter

In lines like:

Code:
SendRconCommand("password 0");



ApplyAnimation(playerid, "PED", "handsup", 4.1, 0, 0, 0, 1, 0, 1);

Shouldn't i somehow put the compiler to ignore this specific warning?



bump



You can ignore this warning by disabling that.

#pragma warning disable 239
  Reply
#17
(2021-10-11, 03:22 PM)Radical Wrote:
(2021-10-06, 11:39 AM)hiwyn Wrote:
(2021-10-02, 12:27 PM)hiwyn Wrote:
(2021-09-29, 07:22 PM)Kwarde Wrote: See: https://github.com/pawn-lang/compiler/wi...orrectness

Appearantly those warnings were disabled by -however/wherever you compiled before-.



I'll take a look



But its not even creating the .amx

Or this is creating in somewhere else?



About the warning

It's giving the warning
Code:
warning 239: literal array/string passed to a non-const parameter

In lines like:

Code:
SendRconCommand("password 0");



ApplyAnimation(playerid, "PED", "handsup", 4.1, 0, 0, 0, 1, 0, 1);

Shouldn't i somehow put the compiler to ignore this specific warning?



bump



You can ignore this warning by disabling that.

#pragma warning disable 239



How to do this?

Code:
? ? ? "args": [

? ? ? ? "${file}",

? ? ? ? "\"-;\"",

? ? ? ? "\"-(\"",

? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\"",

? ? ? ? "#pragma warning disable 239"

? ? ? ],

Not work:

Code:
#pragma warning disable 239.p(0) : fatal error 100: cannot read from file: "#pragma warning disable 239.p"



Why its not generating .amx?
  Reply
#18
bump help
  Reply
#19
anybody knows?
  Reply
#20
If you want to use the #pragma warning disable 239 you need to put it preferably on top of your .pwn file not inside the compiler configuration
Away
  Reply
#21
(2021-10-21, 05:52 AM)Banditul Wrote: If you want to use the #pragma warning disable 239 you need to put it preferably on top of your .pwn file not inside the compiler configuration



Oh thank you!

Now its everything like it was...



But one last problem i couldn't find the .amx looks like its compiling but sending the .amx to somewhere else, right?

There is something i need to change on my tasks.json?



Quote:{

? // See https://go.microsoft.com/fwlink/?LinkId=733558

? // for the documentation about the tasks.json format

? "version": "2.0.0",

? "tasks": [

? ? {

? ? ? "label": "build",

? ? ? "type": "shell",

? ? ? "command": "/usr/bin/pawncc",

? ? ? "args": [

? ? ? ? "${file}",

? ? ? ? "\"-;\"",

? ? ? ? "\"-(\"",

? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\""

? ? ? ],

? ? ? "group": {

? ? ? ? "kind": "build",

? ? ? ? "isDefault": true

? ? ? },

? ? ? "isBackground": false,

? ? ? "presentation": {

? ? ? ? "reveal": "silent",

? ? ? ? "clear": false,

? ? ? ? "panel": "dedicated"

? ? ? },

? ? ? "problemMatcher": [

? ? ? ? {

? ? ? ? ? "base": "$pawncc",

? ? ? ? ? "fileLocation": "relative"

? ? ? ? }

? ? ? ]

? ? }

? ]

}
  Reply
#22
I've found out that is creating the .amx in /home/hiwyn/Documents/sampserver

there i did `code .`

is it possible to change to /home/hiwyn/Documents/sampserver/gamemodes

there the GM is?
  Reply


Forum Jump: