Sorry the topic was not more specific.
I'm new to scripting and just starting off with some basic stuff. I made the below script as the very beginning of a power miner I am working on.
Below is the script:
When it returns the 'rockcolor' it returns as 0, when it should be one of the above.Code:program NoahAutoMine; var rockcolor: Integer; const userock = 'Copper'; procedure definerock; begin if(userock='Copper')then rockcolor:=6855400; if(userock='Tin')then rockcolor:=10329513; end; begin writeln('You chose to mine '+ userock +' which has a color of: '+ IntToStr(rockcolor) +'.'); end.
Any help or advice would be greatly appreciated. Thanks!
-Noah


Reply With Quote





