Hi !
I try to fix BetterChat cause Fishing it's ok and GetMsg for "Unmuted Player" don't work:
Maybe Unmuted Player does not use IPlayer or just not use Player.Id ?Code:Type Oxide.Plugins.BetterChat.Player does not contain a definition for 'Id' and no extenstion method 'Id' of type Oxide.Plugins.BetterChat.Player could be found. Are you missing an assembly reference?
I have test with this:
And the same for Invalid Type and other help message 'The Name 'player' does not exist in the current context and i don't know what word i can replace for 'player'Code:BroadcastChat(GetMsg("Unmuted Player", player.Id).Replace("{player}", player.name));
Does not contain a definition for 'Id'
Discussion in 'Rust Development' started by Cataclysme, Oct 21, 2016.
-
You need to update oxide to Oxide build 2.0.2568
-
Oh sorry i didn't see the release... thanks
[DOUBLEPOST=1477036179][/DOUBLEPOST]Sorry @Resistance it's the same.. -
The `Player` object you have there is an object declared in BetterChat itself and implements the field `steamID` (string) so you should be able to use `player.steamID` (line 19 of BetterChat.cs
) -
Ok i test it after thanks Mughisi
I don't know if you have the time but i'm so curious i try to learn xD
Why sometimes i use player.Id and sometimes player.steam.Id ?
[DOUBLEPOST=1477037390][/DOUBLEPOST]Ok so @Mughisi i test it and don't work:
I can see
I've test with player.steamID and other and don't work x)Code:public string steamID = "0";AND internal bool Ignored(IPlayer player) => ignoring.Contains(player.Id); internal bool Ignored(string steamID) => ignoring.Contains(steamID);
EDIT: Oh i see an error ! I delete it and i try againLast edited by a moderator: Oct 21, 2016 -
Whats the same as it works for me
-
I try to learn C# and i think for learn, fix for lang file doesn't work is great ^^
I just tell it's the same problem with the last update Oxide
For the GetMsg "Invalid type" don't work again but for "Unmuted Player" it's ok, thanks @Mughisi
