PDA

View Full Version : "FIND" function not working with TReflectPlayerArray? LAPE REFLECTION



Vowel
03-30-2015, 04:35 AM
Hey, so I'm making a script that requires finding other players in your area and attacking them.. I've seen in many scripts and tutorials that a proper function would be something like this, however when I try to compile it, it returns "unknown declaration "Find" at line "

procedure attackPlayer();
var
Player: TReflectPlayerArray;

begin
wait(500 + random(1097);
while not MyPlayer.IsUnderAttack do
begin
if Player.Find('//enter user account name') then
begin
Reflect.Mouse.Move(Player.GetMSPoint, 2, 2);
wait(randomrange(50,10));
Reflect.Mouse.Click(Mouse_Left);
end;
end;
end

Justin
03-30-2015, 05:21 AM
I'm going to close this thread, duplicate: https://villavu.com/forum/showthread.php?t=112510