fix changed variable names

This commit is contained in:
Beu 2023-09-27 17:40:49 +02:00
parent 1fb905399d
commit 6c4ecfb9c0
4 changed files with 7 additions and 7 deletions

View File

@ -387,6 +387,6 @@ Void EliminatePlayer(CSmPlayer _Player) {
UIManager.UIAll.SendChat("Player $<$ff6" ^ _Player.User.Name ^ "$> is $<$f00eliminated$>"); UIManager.UIAll.SendChat("Player $<$ff6" ^ _Player.User.Name ^ "$> is $<$f00eliminated$>");
// waiting GetCustomPoints function in ScoresTable_Server // waiting GetCustomPoints function in ScoresTable_Server
declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0]; declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0];
Net_TMxSM_ScoresTable_CustomPoints[_Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"]; Net_TMGame_ScoresTable_CustomPoints[_Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"];
} }

View File

@ -3,7 +3,7 @@
* This mode is used to debug your modes during development. * 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: * 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 // #RequireContext CSmMode
#Include "TimeLib" as TiL #Include "TimeLib" as TiL

View File

@ -292,8 +292,8 @@ foreach (Event in Race::GetPendingEvents()) {
if (Event.IsEndRace) { if (Event.IsEndRace) {
// waiting GetCustomPoints function in ScoresTable_Server // waiting GetCustomPoints function in ScoresTable_Server
declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0]; declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0];
declare Text[][Text] CustomTimes = Net_TMxSM_ScoresTable_CustomPoints; declare Text[][Text] CustomTimes = Net_TMGame_ScoresTable_CustomPoints;
foreach (Player in Players) { foreach (Player in Players) {
if (Player != Event.Player) { if (Player != Event.Player) {
CustomTimes[Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"]; CustomTimes[Player.User.WebServicesUserId] = [_("|Status|K.O."), "f00"];

View File

@ -157,8 +157,8 @@ foreach (Event in PendingEvents) {
if (Server_MatchInfo.RegistrationClosed && !Server_MatchInfo.Participants.exists(Event.Player.User.Login)) { if (Server_MatchInfo.RegistrationClosed && !Server_MatchInfo.Participants.exists(Event.Player.User.Login)) {
Scores::SetPlayerMatchPoints(Event.Player.Score, C_Points_Spectator); Scores::SetPlayerMatchPoints(Event.Player.Score, C_Points_Spectator);
// Equivalent of getCustomPoints: // Equivalent of getCustomPoints:
declare netwrite Text[][Text] Net_TMxSM_ScoresTable_CustomPoints for Teams[0] = []; declare netwrite Text[][Text] Net_TMGame_ScoresTable_CustomPoints for Teams[0] = [];
Net_TMxSM_ScoresTable_CustomPoints[Event.Player.User.WebServicesUserId] = [C_Text_Spectator, C_Color_Spectator]; Net_TMGame_ScoresTable_CustomPoints[Event.Player.User.WebServicesUserId] = [C_Text_Spectator, C_Color_Spectator];
} }
} }
} }