Failed compiling 'TurretSwitches.cs':
1. 'ulong' does not contain a definition for 'userid' and no accessible extension method 'userid' accepting a first argument of type 'ulong' could be found (are you missing a using directive or an assembly reference?) [CS1061]
(TurretSwitches 96 line 235)
On Load Error
Fixed by changing all instances of this:
GetBuildingPrivilege().authorizedPlayers.ToList().Exists(x => x.userid == player.userID);
To this:
GetBuildingPrivilege().authorizedPlayers.ToList().Exists(x => x == player.userID);
Thank you for this. I have pushed the fix now.
I'm having the same issue with Admin Hammer. Anyone have a fix for that yet?