Skip to content
Permalink
Browse files

Send pre-formatted string in SayText and TextMSg as a parameter inste…

…ad of as the format string (#763)
  • Loading branch information...
Arkshine committed Oct 17, 2019
1 parent 6fb27a0 commit 4410d219f72534a811b16d4995e6959a30b0d473
Showing with 2 additions and 0 deletions.
  1. +2 −0 amxmodx/util.cpp
@@ -276,6 +276,7 @@ void UTIL_ClientPrint(edict_t *pEntity, int msg_dest, char *msg)
MESSAGE_BEGIN(MSG_BROADCAST, gmsgTextMsg);

WRITE_BYTE(msg_dest);
WRITE_STRING("%s");
WRITE_STRING(msg);
MESSAGE_END();
msg[190] = c;
@@ -291,6 +292,7 @@ void UTIL_ClientSayText(edict_t *pEntity, int sender, char *msg)

MESSAGE_BEGIN(MSG_ONE, gmsgSayText, NULL, pEntity);
WRITE_BYTE(sender);
WRITE_STRING("%s");
WRITE_STRING(msg);
MESSAGE_END();
msg[190] = c;

0 comments on commit 4410d21

Please sign in to comment.
You can’t perform that action at this time.