07.03.2015, 17:49
Somebody can help me with linux compiling please? 
My problem is with RakServer::Send hook.
https://github.com/kurta999/YSF/blob/YSF_/src/Hooks.cpp
Maybe will work in R13.

My problem is with RakServer::Send hook.
https://github.com/kurta999/YSF/blob/YSF_/src/Hooks.cpp
Код:
./src/Hooks.cpp:60:14: error: expected ‘;’ at end of member declaration
static bool __thiscall Send(void* ppRakServer, RakNet::BitStream* parameters, int priority, int reliability, unsigned orderingChannel, PlayerID playerId, bool broadcast);
^
./src/Hooks.cpp:60:170: error: ISO C++ forbids declaration of ‘Send’ with no type [-fpermissive]
static bool __thiscall Send(void* ppRakServer, RakNet::BitStream* parameters, int priority, int reliability, unsigned orderingChannel, PlayerID playerId, bool broadcast);
^
./src/Hooks.cpp:478:17: error: expected initializer before ‘CHookRakServer’
bool __thiscall CHookRakServer::Send(void* ppRakServer, RakNet::BitStream* parameters, int priority, int reliability, unsigned orderingChannel, PlayerID playerId, bool broadcast)
^
./src/Hooks.cpp: In function ‘void InstallPostHooks()’:
./src/Hooks.cpp:981:75: error: invalid use of non-static member function ‘int CHookRakServer::Send(void*, RakNet::BitStream*, int, int, unsigned int, PlayerID, bool)’
((int*)(*(void**)pRakServer))[RAKNET_SEND_OFFSET] = (int)CHookRakServer::Send;
^
makefile:22: recipe for target 'YSF' failed


