JynX
Posting Freak
- Feb 6, 2016
- 710
- 438
Mine didn't seem to like the 'SendPacket' part
Works like a charm, many thanks for sharing!
I was going to use your version as it tells them they received x from x, but..
Severity Code Description Project File Line Suppression State Error CS1061 'RoomUserManager' does not contain a definition for 'GetRoomUserByUsername' and no extension method 'GetRoomUserByUsername' accepting a first argument of type 'RoomUserManager' could be found (are you missing a using directive or an assembly reference?).
Code:
public RoomUser GetRoomUserByUsername(string Username)
{
return this._users.Values.Where(x => x?.GetClient()?.GetHabbo() != null && x.GetClient().GetHabbo().Username == Username).FirstOrDefault();
}