Hello guys,trying to do it correctly but getting problems with a code,here is the code:
Error im getting is:
Any advice?Thank you!!!
C#:
private void LinkSpecialItems(Mobile m)
{
var boxItems = FindItemsByType(typeof(DonationDyeTub), true);
if (boxItems != null)
{
foreach (var item in boxItems)
{
if (item is DonationDyeTub dt)
{
if (dt.Owner == null)
dt.Owner = m;
}
}
}
}
C#:
Custom / Donations / Mystery boxes / BaseMysteryBox.cs:
CS1026: Line 56: Expected)
CS1002: Line 56: Expected;
CS1525: Line 56: The term of the expression ')' is not valid
CS1002: Line 56: Expected;
Scripts: One or more scripts failed to compile or no script files were found.
Any advice?Thank you!!!