mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
[Server] Change fprintf to LOG_MESSAGE_SIMPLE in GET_PLAYER
This commit is contained in:
parent
186e5fe33e
commit
cef58fa164
@ -25,10 +25,12 @@
|
|||||||
#include "ScriptFunction.hpp"
|
#include "ScriptFunction.hpp"
|
||||||
#include "Types.hpp"
|
#include "Types.hpp"
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Log.hpp>
|
||||||
|
|
||||||
#define GET_PLAYER(pid, pl, retvalue) \
|
#define GET_PLAYER(pid, pl, retvalue) \
|
||||||
pl = Players::getPlayer(pid); \
|
pl = Players::getPlayer(pid); \
|
||||||
if (player == 0) {\
|
if (player == 0) {\
|
||||||
fprintf(stderr, "%s: Player with pid \'%d\' not found\n", __PRETTY_FUNCTION__, pid);\
|
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "%s: Player with pid \'%d\' not found\n", __PRETTY_FUNCTION__, pid);\
|
||||||
/*ScriptFunctions::StopServer(1);*/ \
|
/*ScriptFunctions::StopServer(1);*/ \
|
||||||
return retvalue;\
|
return retvalue;\
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user