static byte FreeId() { for (byte i = 64; i < 128; ++i) { foreach (PlayerBot b in playerbots) { if (b.id == i) { goto Next; } } return i; Next: continue; } unchecked { return (byte)-1; } }