In file included from…
- User
In file included from /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp:26: /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/autonative.h:43:78: warning: backslash-newline at end of file 43 | #define CREATE_SETTER_FUNCTION(type_name, get_type, name, from_type, setter)
| /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp: In member function ‘virtual void Nativesprotobufs::OnAllInitialized()’: /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp:104:5: error: ‘ScriptEngine’ has not been declared 104 | ScriptEngine::RegisterNativeHandler("SEND_PROTOBUF", SendProtobuf); | ^~~~~~~~~~~~ /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/autonative.h:29:42: note: in definition of macro ‘REGISTER_NATIVES’ 29 | void OnAllInitialized() override method
| ^~~~~~ /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp:104:58: error: ‘SendProtobuf’ was not declared in this scope; did you mean ‘counterstrikesharp::SendProtobuf’? 104 | ScriptEngine::RegisterNativeHandler("SEND_PROTOBUF", SendProtobuf); | ^~~~~~~~~~~~ /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/autonative.h:29:42: note: in definition of macro ‘REGISTER_NATIVES’ 29 | void OnAllInitialized() override method
| ^~~~~~ /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp:42:10: note: ‘counterstrikesharp::SendProtobuf’ declared here 42 | void SendProtobuf(ScriptContext& script_context) { | ^~~~~~~~~~~~ /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp: At global scope: /home/fabius/plugins/metamod-source/samples/counterstrikesharp/src/scripting/natives/natives_protobufs.cpp:106:1: error: expected declaration before ‘}’ token 106 | } // namespace counterstrikesharp | ^ make[2]: *** [CMakeFiles/counterstrikesharp.dir/build.make:472: CMakeFiles/counterstrikesharp.dir/src/scripting/natives/natives_protobufs.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:646: CMakeFiles/counterstrikesharp.dir/all] Error 2 make: *** [Makefile:156: all] Error 2/*
- This file is part of CounterStrikeSharp.
- CounterStrikeSharp is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
- CounterStrikeSharp is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- Assistant
- User
исправь ошибку
- Assistant