Trying to use reneb's has total access bool. Can anyone point me towards the proper reference for "protobuf"
bool hasTotalAccess(BasePlayer player)
{
List<BuildingPrivlidge> playerpriv = buildingPrivlidges.GetValue(player) as List<BuildingPrivlidge>;
if (playerpriv.Count == 0)
{
SendReply(player, noToolCupboard);
return false;
}
foreach (BuildingPrivlidge priv in playerpriv.ToArray())
{
List<ProtoBuf.PlayerNameID> authorized = priv.authorizedPlayers;
bool foundplayer = false;
foreach (ProtoBuf.PlayerNameID pni in authorized.ToArray())
{
if (pni.userid == player.userID)
foundplayer = true;
}
if (!foundplayer)
{
SendReply(player, noToolCupboardAccess);
return false;
}
}
return true;
}
"The namespace PlayerNameID does not exist in the namespace Protobuf (are you missing an assembly reference?)"
Currently referencing protobuf-net.dll but something seems amiss.
Need some tips for protobuf
Discussion in 'Rust Development' started by Rick Assley, Mar 8, 2016.
