Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
sourcemod 1.10 fix
Browse files Browse the repository at this point in the history
testing if it also works with sm 1.9
  • Loading branch information
totles committed May 6, 2019
1 parent d2a279b commit b31ff45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/surftimer/misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/surftimer/sql.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/surftimer/sql2.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b31ff45

Please sign in to comment.