pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
211 stars 106 forks source link

sampctl & omp-stdlib #635

Closed notfrancois closed 1 year ago

notfrancois commented 1 year ago

https://github.com/pawn-lang/YSI-Includes/blob/8d9d88612d34505d345a35438759e63e95609309/pawn.json#L6 The above line allows you to download the "old" SAMP includes (with sampctl). If you already have the omp-stdlib library in your project, then when you compile with sampctl build it will generate an error for "duplicate files" and it makes sense.

ERROR: Duplicate 'time.inc' found in both
'/home/x/open.mp/SpaceFramework/dependencies/pawn-stdlib'
'/home/x/open.mp/SpaceFramework/dependencies/omp-stdlib'

But if I delete the samp-stdlib folder, when I run sampctl build I got this error:

failed to list dependency include path: /home/x/open.mp/SpaceFramework/dependencies/samp-stdlib: open /home/x/open.mp/SpaceFramework/dependencies/samp-stdlib: no such file or directory
notfrancois commented 1 year ago

Nvm, I found a solution.

If someone have "this issue", use this as reference:

"dependencies": [
    "openmultiplayer/omp-stdlib",
    "pawn-lang/samp-stdlib@open.mp",
    "pawn-lang/pawn-stdlib@open.mp"
  ],

https://github.com/openmultiplayer/omp-stdlib#using-sampctl