SRL Archive - Help

[Error] C:\Simba\Includes\Reflection\.


wantonman

2011-08-07 20:39:57

[Error] C:\Simba\Includes\Reflection\./Core/TileCore.simba(97:9): Unknown identifier 'SmartGetFieldObject' at line 96
Compiling failed.



i run this





program new;

{.include SRL/SRL.scar}
{.include Reflection/Reflection.simba}


var x,y,dtm:integer
begin


DTM := DTMFromString('mbQAAAHicY2VgYFjIxMCwEYgXAHEfEM8D4moGCM4A4kog7gLib18/MqTEejN0u7Ex7JkcwxAd4syADTBiwWAAAJaeDPA=');
if finddtm(dtm,x,y) then
mmouse(x,y,78,45);

end.
iget this


[Error] C:\Simba\Includes\Reflection\./Core/TileCore.simba(97:9): Unknown identifier 'SmartGetFieldObject' at line 96
Compiling failed.




whats wrong with this code???

function NULL_TILE: TTile;
begin
Result := Tile(NULL_INT, NULL_INT);
end;

Dgby714

2011-08-07 20:41:36

When using Reflection you have to use SMART.

All you have to do is add
{$DEFINE SMART}
before you include SRL.

Edit: It looks like you don't need SRL or Refl for this script, comment or remove them. DTMs are a part of Simba/SCAR not SRL.

TomTuff

2011-08-07 20:43:40

You must include smart since you have reflection included. Uninclude reflection.

wantonman

2011-08-07 20:55:58

ok thanks because i was testing and i didn't know what this was