mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-16 00:28:15 +03:00
Fixes #54 UTIL_ShowMessageArgs
This commit is contained in:
parent
23b1ab8b05
commit
19a2f24de8
@ -823,7 +823,13 @@ NOXREF char *UTIL_dtos4(int d)
|
|||||||
|
|
||||||
void UTIL_ShowMessageArgs(const char *pString, CBaseEntity *pPlayer, CUtlVector<char *> *args, bool isHint)
|
void UTIL_ShowMessageArgs(const char *pString, CBaseEntity *pPlayer, CUtlVector<char *> *args, bool isHint)
|
||||||
{
|
{
|
||||||
if (pPlayer != NULL && pPlayer->IsNetClient())
|
if (!pPlayer)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!pPlayer->IsNetClient())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (args)
|
||||||
{
|
{
|
||||||
MESSAGE_BEGIN(MSG_ONE, gmsgHudTextArgs, NULL, pPlayer->pev);
|
MESSAGE_BEGIN(MSG_ONE, gmsgHudTextArgs, NULL, pPlayer->pev);
|
||||||
WRITE_STRING(pString);
|
WRITE_STRING(pString);
|
||||||
@ -831,7 +837,7 @@ void UTIL_ShowMessageArgs(const char *pString, CBaseEntity *pPlayer, CUtlVector<
|
|||||||
WRITE_BYTE(args->Count());
|
WRITE_BYTE(args->Count());
|
||||||
|
|
||||||
for (int i = 0; i < args->Count(); ++i)
|
for (int i = 0; i < args->Count(); ++i)
|
||||||
WRITE_STRING(args->Element(i));
|
WRITE_STRING((*args)[i]);
|
||||||
|
|
||||||
MESSAGE_END();
|
MESSAGE_END();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user