fix changed variable names
This commit is contained in:
parent
1fb905399d
commit
6c4ecfb9c0
@ -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"];
|
||||
}
|
@ -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
|
||||
|
@ -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"];
|
||||
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user