mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-28 15:55:37 +03:00
Send pre-formatted string in SayText and TextMSg as a parameter instead of as the format string (#763)
This commit is contained in:
parent
6fb27a03a7
commit
4410d219f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user