Top Mud Sites Forum Return to
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Thread Tools
Old 08-02-2004, 05:28 AM   #1
Join Date: Jun 2004
Posts: 66
tehScarecrow is on a distinguished road
Hi everyone, I'm new to the forums and a beginning programmer trying to program my first mud. I'm using lpc and the merentha mudlib with the mudOS driver on a linux system.

I have a couple questions. First, does anyone know of an active lpc coders forum? As I realize this isn't the best place to ask an lpc question, but I'm hoping the answer is general enough that I can get a good answer

Anyways, my problem is how with programming languages " is a commonly used symbol. Thus, I haven't been able to get the "says" in my mud working the way I'd like. Currently, when someone says blah, it comes out as;

Someone says: Blah

When what I want is...

Someone says, "Blah."

Anyone able to help? =)
tehScarecrow is offline   Reply With Quote
Old 08-02-2004, 05:52 AM   #2
Ogma's Avatar
Join Date: Apr 2002
Home MUD: DartMUD
Posts: 86
Ogma is on a distinguished road
In LPC as in C, you can escape the quotes by preceeding it with a backslash.
So, \" will give you a quote literal in the middle of a string. There are a
few other escape codes used in LPC, most frequently \n for linefeed and \i for tab.
Ogma is offline   Reply With Quote

Thread Tools

Coding question with " in says - Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone explain coding a MUD... ning03 MUD Coding 17 07-18-2005 01:58 AM
Simple Coding macdaddy7 MUD Coding 1 01-25-2004 09:48 PM
Coding macdaddy7 MUD Coding 2 08-28-2003 07:02 PM
Coding? Corhean Advertising for Staff 0 10-26-2002 10:27 PM
Offline Coding Jayl MUD Coding 14 05-28-2002 12:11 AM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 04:34 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud 2014