Rykoff

Member
ServUO Version
Publish Unknown
Ultima Expansion
Time Of Legends
So I’m getting this error
from this
BaseOre ore = Mining.System.Construction (res.Types[0], null) as BaseOre;


I don’t understand how come it’s doing this
Input much appreciated and thank you all
 

Attachments

  • image.jpg
    image.jpg
    749.9 KB · Views: 16
+ Custom/new pets/IronBeetle/IronBeetle2.cs:
CS1002: Line 284: ; expected
CS1525: Line 284: Invalid expression term ')'
CS1002: Line 284: ; expected
CS1525: Line 284: Invalid expression term ')'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

is the error

BaseOre ore = Mining.System.Construction (res.Types[0], null) as BaseOre

is the line throwing the error
 
try ; at the end of line
BaseOre ore = Mining.System.Construction (res.Types[0], null) as BaseOre;
 
The error here is saying that you need a semicolon after a statement.

The first error you posted is saying you are trying to pass 2 arguments into a method called Construct(), but there is no method of that name that takes 2 arguments.

Are you using Visual Studio? You would have a much easier time with this if you were as it displays the errors before you attempt to compile.

 

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back