2023-11-13, 05:43 PM
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:
I was under the impression that old SA-MP scripts were supported as-is. Could anyone point me in the right direction?
Thanks.
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 214: possibly a "const" array argument was intended: "user"
warning 239: literal array/string passed to a non-const parameter (a LOT of these)
warning 234: function is deprecated (symbol "GetServerVarAsInt") Use `GetConsoleVarAsInt`.
warning 213: tag mismatch: expected tag "bool", but found none ("_")
warning 213: tag mismatch: expected 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.