ID:144356
 
Code:


Problem description:

ok, I just started coding recently,and I am working on making the verb smile colorful using HTML from this website http://www.vex.net/~x/xfade/index.shtml

ok, this is what I am doing here...then I need help finding my error...

mob/verb/smile()
world << "(I put the HTML code here) "


(btw, I am not putting all this on a different line...the message thingy makes me)

then, I get these errors

The Verbs.dm:17:error: includes: missing comma ',' or right-paren ')'
The Verbs.dm:17:error: includes: expected end of statement
The Verbs.dm:17:error: ): expected }
The Verbs.dm:17:error: location of top-most unmatched {
Your problem was that your " was outside the brackets also use the dm tags for code.

mob/verb/smile()
world << ("I put the HTML code here")
In response to Yorae
ok...I am completely confused...would it look like this?

mob/verb/smile()
world << "<FONT SIZE="+1"><FONT COLOR="#006400">S</FONT><FONT COLOR="#5a4412">m</FONT><FONT COLOR="#b22222">i</FONT><FONT COLOR="#989012">l</FONT><FONT COLOR="#7cfc00">e</FONT></FONT></color>"



???? is that it ????
In response to Moleboy
the thing is...on DM, when I do that...it shows errors...
In response to Moleboy
mob/verb/smile()
world << "<font color=red>R<font color=blue>E<font color=white>A<font color=red>D</font> THE DM GUIDE!"


Which would look like

mob/verb/smile()
world << "<font color=red>R<font color=blue>E<font color=white>A<font color=red>D</font> THE DM GUIDE!

DM GUIDE READ IT.
In response to A.T.H.K
A.T.H.K wrote:
> mob/verb/smile()
> world << "<font color=red>R<font color=blue>E<font color=white>A<font color=red>D</font> THE DM GUIDE!"
>

Which would look like

mob/verb/smile()
world << "<font color=red>R<font color=blue>E<font color=white>A<font color=red>D</font> THE DM GUIDE!

DM GUIDE READ IT.
Isn't there a HTML decode proc/var, or something? used to be back in the day if i rememer correctly.
In response to Darkdemonrad
yeah. html_decode(text) same for html_encode(text)



As for moleboy, the standard is;

world << " all html goes in here "