|
|
#1 |
|
Member
Join Date: Jun 2004
Posts: 66
![]() |
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? =) |
|
|
|
|
|
#2 |
|
Member
Join Date: Apr 2002
Home MUD: DartMUD
Posts: 86
![]() |
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. |
|
|
|
![]() |
| 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 |
|
|