• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Code tags displaying on 1 line

Joined
Apr 30, 2007
Messages
2,339
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