oscar-broman / samp-weapon-config

A more consistent and responsive damage system with many new features
Apache License 2.0
93 stars 83 forks source link

redefinition of constant/macro #294

Open aujiz11 opened 3 weeks ago

aujiz11 commented 3 weeks ago

When using the include on open.mp, it causes a warning redefinition of constant/macro (symbol "WEAPON_UNKNOWN")

NexiusTailer commented 3 weeks ago

So if it won't be defined by weapon-config, it will have a different value (-1, that's how it defined in omp-stdlib) so there may be problems with any code which assumes it's 55, not -1. The definition should be changed on omp side since it was added recently, while was in weapon-config with exactly this name for years.

aujiz11 commented 1 week ago

So if it won't be defined by weapon-config, it will have a different value (-1, that's how it defined in omp-stdlib) so there may be problems with any code which assumes it's 55, not -1. The definition should be changed on omp side since it was added recently, while was in weapon-config with exactly this name for years.

Thank you, I think they are the same maybe I have to edit my script