hi guys. i need your help.
i coded this logic in OnPlayerCommand.
function OnPlayerCommand(ID: Byte; Text: string): boolean;
var
 name:string;
 i:integer;
begin
 result:=false;
 if text='/test' then
 begin
  result:=true;
  for i:=1 to 32 do
  begin
   name:=idtoname(i);
   if name='foo' then
    command('/setteam1 '+inttostr(i))
   else
    command('/setteam2 '+inttostr(i));
  end;
 end;
end;
more execute /setteam command then get a blue screen possibility is high.
i want know cause where error occurs and method of solutions.
thx for time.