From 6c4ecfb9c0b319a768462300d846c08f2ab8b3f8 Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 27 Sep 2023 17:40:49 +0200 Subject: [PATCH] fix changed variable names --- TM_CPKnockout.Script.txt | 4 ++-- TM_DebugMode.Script.txt | 2 +- TM_LapsKnockout.Script.txt | 4 ++-- TM_ReverseCup.Script.txt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TM_CPKnockout.Script.txt b/TM_CPKnockout.Script.txt index c1af550..688d251 100644 --- a/TM_CPKnockout.Script.txt +++ b/TM_CPKnockout.Script.txt @@ -387,6 +387,6 @@ Void EliminatePlayer(CSmPlayer _Player) { UIManager.UIAll.SendChat("Player $<$ff6" ^ _Player.User.Name ^ "$> is $<$f00eliminated$>"); // waiting GetCustomPoints function in ScoresTable_Server - declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0]; - Net_TMxSM_ScoresTable_CustomPoints[_Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"]; + declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0]; + Net_TMGame_ScoresTable_CustomPoints[_Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"]; } \ No newline at end of file diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index 13cde66..37e18c8 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -3,7 +3,7 @@ * This mode is used to debug your modes during development. * To use it, you just have to change the line below to put the path of your mode: */ -#Extends "Modes/TrackMania/TM_TimeAttack_Online.Script.txt" +#Extends "Modes/TrackMania/TM_Rounds_Online.Script.txt" // #RequireContext CSmMode #Include "TimeLib" as TiL diff --git a/TM_LapsKnockout.Script.txt b/TM_LapsKnockout.Script.txt index 3ac9893..6afb402 100644 --- a/TM_LapsKnockout.Script.txt +++ b/TM_LapsKnockout.Script.txt @@ -292,8 +292,8 @@ foreach (Event in Race::GetPendingEvents()) { if (Event.IsEndRace) { // waiting GetCustomPoints function in ScoresTable_Server - declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0]; - declare Text[][Text] CustomTimes = Net_TMxSM_ScoresTable_CustomPoints; + declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0]; + declare Text[][Text] CustomTimes = Net_TMGame_ScoresTable_CustomPoints; foreach (Player in Players) { if (Player != Event.Player) { CustomTimes[Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"]; diff --git a/TM_ReverseCup.Script.txt b/TM_ReverseCup.Script.txt index d613652..ea4df0e 100644 --- a/TM_ReverseCup.Script.txt +++ b/TM_ReverseCup.Script.txt @@ -157,8 +157,8 @@ foreach (Event in PendingEvents) { if (Server_MatchInfo.RegistrationClosed && !Server_MatchInfo.Participants.exists(Event.Player.User.Login)) { Scores::SetPlayerMatchPoints(Event.Player.Score, C_Points_Spectator); // Equivalent of getCustomPoints: - declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0] = []; - Net_TMxSM_ScoresTable_CustomPoints[Event.Player.User.WebServicesUserId] = [C_Text_Spectator, C_Color_Spectator]; + declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0] = []; + Net_TMGame_ScoresTable_CustomPoints[Event.Player.User.WebServicesUserId] = [C_Text_Spectator, C_Color_Spectator]; } } }