According to the manual misc/conversions.scar
I don't seem to have it, I am using scar 3.12 with revision 5 from svn.
How can I get this include?
According to the manual misc/conversions.scar
I don't seem to have it, I am using scar 3.12 with revision 5 from svn.
How can I get this include?
Manual is old and outdated.
What are you looking for exactly, maybe i can help.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
Specificallly
function cBoxArray2(x1, y1, x2, y2: Array of Integer): TBoxArray;
By: Freddy1990
Description:
Loads x1, y1, x2, y2 integer arrays into a TBoxArray.
I'm not too good with arrays in Scar, my scripts parses a text file, then adds the coordinates to a TBoxArray
Hoping to have something like this.
Am I declaring my array correctly? And how can I get these functions, or how do I manually add values to a TBoxArray.Code:var Windows: Array of TBoxArray; begin //Obviously x1 y1 x2 y2 will be replaced with values Windows[Inventory] := cBoxArray2(x1, y1, x2, y2); Windows[Skills] := cBoxArray2(x1, y1, x2, y2);
Thanks,
SCAR Code:program New;
{.include SRL/SRL.scar}
var
Windows: Array [0..1] of TBoxArray;
begin
Windows[0] := IntToBox(MIX1, MIY1, MIX2, MIY2);
Windows[1] := IntToBox(x1, y1, x2, y2);
end.
Interested in C# and Electrical Engineering? This might interest you.
Thanks!
Is there any way to change the index of the array from an Integer to a String instead?
Windows['Inventory'] := IntToBox(x1, y1, x2, y2);
instead of 0 .. 4
There are currently 1 users browsing this thread. (0 members and 1 guests)