From b9241d96d5d8725e5d54e0aaaa865aa23b3235d8 Mon Sep 17 00:00:00 2001 From: Nicolai Cornelis Date: Wed, 7 Sep 2022 03:53:52 +0200 Subject: [PATCH] FormatEx --- scripting/get5/surrender.sp | 2 +- scripting/get5/util.sp | 2 +- scripting/get5_mysqlstats.sp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripting/get5/surrender.sp b/scripting/get5/surrender.sp index b112ca180..254e57f90 100644 --- a/scripting/get5/surrender.sp +++ b/scripting/get5/surrender.sp @@ -191,7 +191,7 @@ void CheckForSurrenderOnDisconnect() { surrenderRejoinTime = 30; } char surrenderSecondsFormatted[32]; - Format(surrenderSecondsFormatted, sizeof(surrenderSecondsFormatted), "{GREEN}%d{NORMAL}", surrenderRejoinTime); + FormatEx(surrenderSecondsFormatted, sizeof(surrenderSecondsFormatted), "{GREEN}%d{NORMAL}", surrenderRejoinTime); if (surrenderingTeam == Get5Team_None) { // We end here if people start leaving at the same time; if none of the teams are full and no full team disconnected. Get5_MessageToAll("%t", "AllPlayersLeftTieCountdown", surrenderSecondsFormatted); diff --git a/scripting/get5/util.sp b/scripting/get5/util.sp index 9243c2a57..b69a497fc 100644 --- a/scripting/get5/util.sp +++ b/scripting/get5/util.sp @@ -430,7 +430,7 @@ stock bool ReadEmptyStringInsteadOfPlaceholder(const KeyValues kv, char[] buffer const int bufferSize) { kv.GetString(NULL_STRING, buffer, bufferSize); if (StrEqual(KEYVALUE_STRING_PLACEHOLDER, buffer)) { - Format(buffer, bufferSize, ""); + FormatEx(buffer, bufferSize, ""); return true; } return false; diff --git a/scripting/get5_mysqlstats.sp b/scripting/get5_mysqlstats.sp index 71fef562e..2614dafec 100644 --- a/scripting/get5_mysqlstats.sp +++ b/scripting/get5_mysqlstats.sp @@ -278,7 +278,7 @@ static void AddPlayerStats(const char[] matchId, const int mapNumber, const KeyV char teamString[16]; GetTeamString(team, teamString, sizeof(teamString)); - // Note that Format() has a 127 argument limit. See SP_MAX_CALL_ARGUMENTS in sourcepawn. + // Note that FormatEx() has a 127 argument limit. See SP_MAX_CALL_ARGUMENTS in sourcepawn. // At this time we're at around 33, so this should not be a problem in the foreseeable future. // clang-format off FormatEx(queryBuffer, sizeof(queryBuffer),