• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] A bunch of warnings and errors
#1
Hi. I just discovered open.mp and decided to give it a try with my old SA-MP gamemode. I managed to run the server just fine, but compiling the script causes some warnings and errors that just lead me nowhere.

What I have done:

Replaced #include <a_samp> with #include <open.mp>
Replaced #include <YSI\y_ini> with #include <YSI_Storage\y_ini>
downloaded the latest YSI library and pasted its content under include directory

Rest of the code is pretty much untouched

I am getting a these warnings and errors:


PHP Code:
warning 214possibly a "const" array argument was intended"user"
warning 239literal array/string passed to a non-const parameter (a LOT of these)
warning 234: function is deprecated (symbol "GetServerVarAsInt") Use `GetConsoleVarAsInt`.
warning 213tag mismatchexpected tag "bool"but found none ("_")
warning 213tag mismatchexpected tag "t_WEAPON"but found none ("_")
warning 234: function is deprecated (symbol "TextDrawBackgroundColor") Use `TextDrawBackgroundColour

I was under the impression that old SA-MP scripts were supported as-is. Could anyone point me in the right direction?

Thanks.
  Reply
#2
Check this out
https://github.com/adib-yg/openmp-server...d-warnings

You can also use the upgrade tool
  Reply


Forum Jump: