Is this:
The Same as This:Simba Code:ExpGained := ExpGained + 387;
ThanksSimba Code:Inc(ExpGained + 387);
~John
Is this:
The Same as This:Simba Code:ExpGained := ExpGained + 387;
ThanksSimba Code:Inc(ExpGained + 387);
~John
No, inc does simply increase an integer with one.
Simba Code:program Test;
{$i srl/srl.simba}
procedure Test;
var
ExpGained, ExpGained2: Integer;
begin
ExpGained := (ExpGained + 387);
WriteLn('ExpGained: '+IntToStr(ExpGained)+'');
IncEx(ExpGained2, 387);
WriteLn('ExpGained2: '+IntToStr(ExpGained2)+'');
end;
begin
SetupSRL;
Test;
end.
IncEx does increase an Integer with a number you can specify.
Inc(ExpGained + 387) will also give a compiling error.
Script above:
Simba Code:SRL Compiled in 16 msec
ExpGained: 387
ExpGained2: 387
Successfully executed.
ok ty
Just so you know:
This:
IS the Same as This:Simba Code:ExpGained := ExpGained + 387;
Simba Code:IncEx(ExpGained, 387);
Simply a GOD beast...
My Tutorials
There are currently 1 users browsing this thread. (0 members and 1 guests)