Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Lab Assistant
Original Poster
#1 Old 22nd Mar 2018 at 12:02 AM
Default C# -- Cannot explicitly call operator or accessor
I have a bit of premade code in a mod I'm making for the chicken coop:
Code:
uint eventId = evt.get_EventId();


The error I'm getting is
Code:
'Sims3.SimIFace.IEvent.EventId.get': cannot explicitly call operator or accessor


Can someone tell me how to fix what's going on? I'm using VS 2008 (as those are the tutorials available). As someone else pointed out, we do need tutorials for VS 2017.
Thanks!
Advertisement
Space Pony
#2 Old 23rd Mar 2018 at 3:39 PM
As far as i know the EventID is a property not a method.

try

uint eventId = evt.EventId;
Back to top