rj
2013-09-28 18:22:49
Meh not to familiar with lape but I am getting a Unknown declaration error :s
How does it not know what debugMode is?
Test script is this
{$i Soulsplit/core/SS_GameTab.simba}
{$i Soulsplit/core/SS_Interface.simba}
{$i Soulsplit/core/SS_Inventory.simba}
{$i Soulsplit/core/SS_Minimap.simba}
{$i Soulsplit/core/SS_Prayer.simba}
const
Revision = 0;
type main = record
debugMode:boolean;
end;
function main.UpdateSSInclude:boolean;
begin
end;
procedure main.SetupSSInclude(update, debug:boolean);
begin
if debug then
main.debugMode := true;
Writeln('Setting up Soulsplit include revision ' + ToStr(Revision));
Writeln('Debug mode ' + ToStr(main.debugMode));
if update then
begin
if UpdateSSInclude then
begin
Writeln('There has been a update for the Include!');
TerminateScript;
end;
end;
// SS_inventory.Setup;
end;Exception in Script: Unknown declaration "debugMode" at line 21, column 9 in file "C:\Simba\Includes\Soulsplit\SSInclude.simba"How does it not know what debugMode is?
Test script is this
{$i Soulsplit/SSInclude.simba}
begin
main.SetupSSInclude(false, true);
end.