Log in

View Full Version : [Error] C:\Simba\Includes\Reflection\.



wantonman
08-08-2011, 12:39 AM
[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('mbQAAAHicY2VgYFjIxMCwEYgXAHEfEM8D4m oGCM4A4kog7gLib18/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
08-08-2011, 12:41 AM
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
08-08-2011, 12:43 AM
You must include smart since you have reflection included. Uninclude reflection.

wantonman
08-08-2011, 12:55 AM
ok thanks because i was testing and i didn't know what this was