|
|||||||
This is a discussion on "Coding question with " in says" in the Top Mud Sites MUD Coding forum : 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 ... |
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today! If you have any problems with the registration process or your account login, please contact us. If you are a registered member of the old TMS forums, please click here
|
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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 02:58 AM |
| Simple Coding | macdaddy7 | MUD Coding | 1 | 01-25-2004 10:48 PM |
| Coding | macdaddy7 | MUD Coding | 2 | 08-28-2003 08:02 PM |
| Coding? | Corhean | Advertising for Staff | 0 | 10-26-2002 11:27 PM |
| Offline Coding | Jayl | MUD Coding | 14 | 05-28-2002 01:11 AM |
|
|