Hey, i forgotted how to make script do something on every second trip... I need to make it run on every second trip, or is there procedure or function to Running energy ?
Thanks,
~Home
Hey, i forgotted how to make script do something on every second trip... I need to make it run on every second trip, or is there procedure or function to Running energy ?
Thanks,
~Home
Actualy, I just remembered how to do this LOL
It's thefunction (i'll get u an example 1 sec)SCAR Code:mod()
ah nvm, im too lazy. Mod divides the first num by the second, and returns true if the remainder is 0
EX:
SCAR Code:for i:=0 to 9 do
If (mod(i,5)) then
Special;
Else
Normal;
That would be:
It might be if the remainder is the second number but IDK its either 0 or the second #SCAR Code:Normal;
Normal;
Normal;
Normal;
Special;
Normal;
Normal;
Normal;
Normal;
Special;
for every other time it would be Mod(i,2 or 1 idk)
--------------------------------------------------------- ![]()
Pm me if you need any math functions made. Me = l0ving t3h mathz
--------------------------------------------------------- ![]()



You used mod wrong there. You wouldn't use it as a function, you'd use it as *. It returns the remainder. So 5 mod 3 would be 2.
Lol sorry, you're right XD
I knwe it wasthough didn't I? lolSCAR Code:Mod()![]()
--------------------------------------------------------- ![]()
Pm me if you need any math functions made. Me = l0ving t3h mathz
--------------------------------------------------------- ![]()



Nope, it's Mod, not Mod()![]()
repeat
i:=i+1;
if (i mod 2)=0 then writeln(inttostr(i));
wait(500);
until isfkeydown(12);
Awwww... You guys suck! you're too damn good at thislol
--------------------------------------------------------- ![]()
Pm me if you need any math functions made. Me = l0ving t3h mathz
--------------------------------------------------------- ![]()
i like mod XD
SCAR Code:program New;
var
i : Integer;
Canvas : TCanvas;
begin
Canvas := GetDebugCanvas;
DisplayDebugImgWindow(100, 100);
for i:= 0 to 100 do
begin
Canvas.Pen.Color := 255 * i;
if ((i mod 2) = 1) then
begin
Canvas.Pen.Width := i mod 20 + 1
Canvas.Pen.Color := 255 * (i * i);
end;
Canvas.MoveTo(0, i);
Canvas.LineTo(100, i);
end;
DisplayDebugImgWindow(100, 100);
end.
There are currently 1 users browsing this thread. (0 members and 1 guests)