dear members,
i was trying a script which stops one player (A) if i start another one (B) OR it will fade out the cartwall if i will start a player. here is the script.
[code]procedure OnPlayerStart(PlaylistIndex: integer; PlayerIndex: integer);
var
i: integer;
ii: integer;
begin
for i := 0 to Engine.GetPlayBackControl(0).GetPlayerCount - 1 do
begin
if i <> PlayerIndex then
Engine.GetPlaybackControl(0).GetPlayer(i).Stop;
end;
for ii := 0 to Engine.GetCartwallControl.GetPlayerCount - 1 do
Engine.GetCartwallControl.GetPlayer(ii).FadeOut;
end;
begin
end.[/code]
interestingly the script works “fine”. so the player stops and cartwall fades out BUT i got an error message everytime when i start the player:
Runtime error “List index out of bounds (4711113)” in notification script XXXXXXXXXXXXXXXXX.mls, handling message: PLAYERCONTROL_START 4470231B252F618E 0 0000 0001 ?