Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Code tags displaying on 1 line

Joined
Apr 30, 2007
Messages
2,337
Reaction score
1,547
Hi

Code tags are all displaying on 1 line

Example:

Code:
public void AlterChatName(bool Normal = false)        {            if (GetRoom() == null || GetClient() == null || IsPet || IsBot)                return;            Habbo Habbo = GetClient().GetHabbo();            if (Habbo == null)                return;            if (Normal)            {                GetRoom().SendMessage(new UserNameChangeComposer(RoomId, VirtualId, Habbo.Username), false, true);            }            else            {                               string Hex = string.Empty;                string Html = string.Empty;                if (Habbo.Rank > 1)                {                    switch (Habbo.Rank)                    {                        case 2:                        case 3:                            {                                Hex = "#006400";                                break;                            }                        case 4:                        case 5:                            {                                Hex = "#FF0000";                                break;                            }                        case 6:                            {                                Hex = "#FF748C";                                break;                            }                        default:                            return;                    }                }                else if (Habbo.VIPRank > 0)                {                    switch (Habbo.VIPRank)                    {                        case 1:                            {                                Hex = "#cd7f32";                                break;                            }                        case 2:                            {                                Hex = "#C0C0C0";                                break;                            }                        case 3:                            {                                Hex = "#D4AF37";                                break;                            }                        default:                            return;                    }                }                if (!string.IsNullOrEmpty(Hex))                {                    Html = "<font color='" + Hex + "'>" + Habbo.Username + "</font>";                    GetRoom().SendMessage(new UserNameChangeComposer(RoomId, VirtualId, Html), false, true);                }            }        }
 
Back
Top