我有
playerIds : Array[0..500] of string;
function isPlayerMob(check : string): boolean;
var
i : integer;
begin
for i := 0 to 500 do
begin
if ((playerIds[i] <> '') and (playerIds[i] = check)) then
begin
result := true;
end;
end;
result := false;
end;
我收到警告
Hint: Value assigned to 'isPlayerMob' never used
有人可以告诉我如何解决这个问题吗?错误是针对
结果:=真;