dawnking
Member
- Joined
- Jun 23, 2016
- Messages
- 176
- Reaction score
- 22
I want to add this check ping functions to make scripts...
Like if all players ping are high, kick everybody to save players
But i got some problems that idk how to fix
I'm using this sources: https://github.com/Fir3element/tfs04full
(base)
I've just edited this 2 files
all parts i edited i've put:
luascript.cpp
http://hastebin.com/umodedehuy.go
luascript.h
http://hastebin.com/xonixeluqe.cpp
And this error:
Idk why this error too
The
Is in:
Like if all players ping are high, kick everybody to save players
But i got some problems that idk how to fix
I'm using this sources: https://github.com/Fir3element/tfs04full
(base)
I've just edited this 2 files
all parts i edited i've put:
Code:
// getOtsysTime() + getPlayerPing(cid) + doPlayerSendPing(cid) [CREDITS: Shyzoul and Nothxbye]
code
// end
luascript.cpp
http://hastebin.com/umodedehuy.go
luascript.h
http://hastebin.com/xonixeluqe.cpp
And this error:
Code:
In file included from player.h:33:0,
from luascript.cpp:26:
protocolgame.h: In static member function ‘static int32_t LuaInterface::luaPlayerSendPing(lua_State*)’:
protocolgame.h:205:8: error: ‘void ProtocolGame::sendPing()’ is private
void sendPing();
^
luascript.cpp:10175:20: error: within this context
client->sendPing();
^
Idk why this error too
The
Code:
static int32_t luaPlayerSendPing(lua_State* L);
Is in:
Code:
class LuaInterface
{
public: