how does it works? becouse i got this error:
here is the line:SCAR Code:Line 256: [Error] (12953:6): Invalid number of parameters
SCAR Code:wait until (not(FindDTM(Food[i],a,b,MIX1,MIY1,MIX2,MIY2)))
can someone teach me how does it works?![]()
how does it works? becouse i got this error:
here is the line:SCAR Code:Line 256: [Error] (12953:6): Invalid number of parameters
SCAR Code:wait until (not(FindDTM(Food[i],a,b,MIX1,MIY1,MIX2,MIY2)))
can someone teach me how does it works?![]()
you have to make a repeat until loop
SCAR Code:repeat
Wait(1000); //will wait one second.
until(not(FindDTM(Food[i],a,b,MIX1,MIY1,MIX2,MIY2)));
but when it doens't found the food it will wait forever. so you have to make fail saves in it like:
SCAR Code:C := 0;
repeat
C := C + 1; //will add 1 to c
Wait(1000); //waits one second;
until (not(FindDTM(Food[i],a,b,MIX1,MIY1,MIX2,MIY2))) or (C >= 5); //now it will also stop repeating if c is or is higher then 5.
if C >= 5 then LogOut;
hope this helps![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)