hi all,
I have a little problem in my script which i am sadly not figuring out myself somehow(im a scripting newbie and this is my first project).
Here the Error
(22:57:02) [*] [Error] King-Mode -> (OnLeaveGame): Out Of Range
Here the procedure
procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);
begin
//free the FreePos for new player
FreePos[Team][Players[ID].ClassID] := 1;
WriteConsole(0,'--->' + Classes[Players[ID].ClassID].Name + ' for team #' + InttoStr(Players[ID].Team) + ' is needed. Type !' + Classes[ID].Name + ' to become the ' + Classes[ID].Name + '<---',Color);
//reset player
ResetPlayer(ID);
end;
maybe someone else can find the error.
Thanks alot for any help.