From b31ff454b9182d2e4b3b96fb555f309732945fd7 Mon Sep 17 00:00:00 2001 From: totles Date: Mon, 6 May 2019 22:24:07 +0200 Subject: [PATCH] sourcemod 1.10 fix testing if it also works with sm 1.9 --- addons/sourcemod/scripting/surftimer/misc.sp | 2 +- addons/sourcemod/scripting/surftimer/sql.sp | 10 +++++----- addons/sourcemod/scripting/surftimer/sql2.sp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/sourcemod/scripting/surftimer/misc.sp b/addons/sourcemod/scripting/surftimer/misc.sp index 39b2a1c..41a2d57 100644 --- a/addons/sourcemod/scripting/surftimer/misc.sp +++ b/addons/sourcemod/scripting/surftimer/misc.sp @@ -4408,7 +4408,7 @@ public void totalTimeForHumans(int unix, char[] buffer, int size) } } -public void sendDiscordAnnouncement(char szName[32], char szMapName[128], char szTime[32]) +public void sendDiscordAnnouncement(char szName[128], char szMapName[128], char szTime[32]) { char webhook[1024]; GetConVarString(g_hRecordAnnounceDiscord, webhook, 1024); diff --git a/addons/sourcemod/scripting/surftimer/sql.sp b/addons/sourcemod/scripting/surftimer/sql.sp index 80d840f..ee0a558 100644 --- a/addons/sourcemod/scripting/surftimer/sql.sp +++ b/addons/sourcemod/scripting/surftimer/sql.sp @@ -3762,7 +3762,7 @@ public void SQL_selectBonusTotalCountCallback(Handle owner, Handle hndl, const c return; } -public void db_insertBonus(int client, char szSteamId[32], char szUName[32], float FinalTime, int zoneGrp) +public void db_insertBonus(int client, char szSteamId[32], char szUName[128], float FinalTime, int zoneGrp) { char szQuery[1024]; char szName[MAX_NAME_LENGTH * 2 + 1]; @@ -3792,7 +3792,7 @@ public void SQL_insertBonusCallback(Handle owner, Handle hndl, const char[] erro CalculatePlayerRank(client, 0); } -public void db_updateBonus(int client, char szSteamId[32], char szUName[32], float FinalTime, int zoneGrp) +public void db_updateBonus(int client, char szSteamId[32], char szUName[128], float FinalTime, int zoneGrp) { char szQuery[1024]; char szName[MAX_NAME_LENGTH * 2 + 1]; @@ -4813,7 +4813,7 @@ public int LatestRecordsMenuHandler(Handle menu, MenuAction action, int param1, CloseHandle(menu); } -public void db_InsertLatestRecords(char szSteamID[32], char szName[32], float FinalTime) +public void db_InsertLatestRecords(char szSteamID[32], char szName[128], float FinalTime) { char szQuery[512]; Format(szQuery, 512, sql_insertLatestRecords, szSteamID, szName, FinalTime, g_szMapName); @@ -6933,7 +6933,7 @@ public void db_selectStyleMapTopSurfers(int client, char mapname[128], int style } // Styles for bonuses -public void db_insertBonusStyle(int client, char szSteamId[32], char szUName[32], float FinalTime, int zoneGrp, int style) +public void db_insertBonusStyle(int client, char szSteamId[32], char szUName[128], float FinalTime, int zoneGrp, int style) { char szQuery[1024]; char szName[MAX_NAME_LENGTH * 2 + 1]; @@ -7016,7 +7016,7 @@ public void db_viewMapRankBonusStyleCallback(Handle owner, Handle hndl, const ch } } -public void db_updateBonusStyle(int client, char szSteamId[32], char szUName[32], float FinalTime, int zoneGrp, int style) +public void db_updateBonusStyle(int client, char szSteamId[32], char szUName[128], float FinalTime, int zoneGrp, int style) { char szQuery[1024]; char szName[MAX_NAME_LENGTH * 2 + 1]; diff --git a/addons/sourcemod/scripting/surftimer/sql2.sp b/addons/sourcemod/scripting/surftimer/sql2.sp index 6231452..e2e1d4b 100644 --- a/addons/sourcemod/scripting/surftimer/sql2.sp +++ b/addons/sourcemod/scripting/surftimer/sql2.sp @@ -874,7 +874,7 @@ public void SQL_SelectAnnouncementsCallback(Handle owner, Handle hndl, const cha } } -public void db_insertAnnouncement(char szName[32], char szMapName[128], char szTime[32]) +public void db_insertAnnouncement(char szName[128], char szMapName[128], char szTime[32]) { if (g_iServerID == -1) return;