splewis / get5

CS:GO Sourcemod plugin for competitive matches/scrims
GNU General Public License v3.0
558 stars 176 forks source link

Can't compile script when including get5.inc #937

Closed EllyssonMike closed 1 year ago

EllyssonMike commented 1 year ago

I'm trying to compile a custom plugin using Get5.

I've put the get5.inc and all json dependency folder inside addons/sourcemod/scripting/include. But I can't compile because I'm getting this errors below:

Expected behavior

Be able to compile.

Actual behavior

image

Steps to reproduce

Install get5 following the steps reproduced in the docs.

Try to create a plugin. Move then to addons/sourcemod/scripting folder

Compile with spcomp or ./compile.sh bash$: ./spcomp script_test.sp or bash$: ./compile.sh script_test.sp

Other scripts I am able to compile normally, but when I include 'get5.inc', I'm getting this errors. I'm using the get5_api_stats.sp as reference, but no success.

nickdnk commented 1 year ago

Does it work on SM 1.10? We are still using that for compiling get5.

nickdnk commented 1 year ago

You also need SM JSON v4.

EllyssonMike commented 1 year ago

Does it work on SM 1.10? We are still using that for compiling get5.

I will test now, thank you.

EllyssonMike commented 1 year ago

You also need SM JSON v4.

I've tried with v4, but I got a lot more errors

EllyssonMike commented 1 year ago

Because the sm version, perhaps?

nickdnk commented 1 year ago

You also need SM JSON v4.

I've tried with v4, but I got a lot more errors

Regardless, it's not going to work ever on v3.

EllyssonMike commented 1 year ago

Thank you, I will try now with SM 1.10 and SM-JSON 4.1.1.

EllyssonMike commented 1 year ago

You also need SM JSON v4.

I've tried with v4, but I got a lot more errors

Regardless, it's not going to work ever on v3. Worked!!, thank you a lot! I've downgraded sm to 1.10 and upgraded sm-json to 4.1.1 and it work. Thanks!