ID:141157
 
Code:
var
worldC=1
mob/var/OOC=0
mob/verb/OOC(msg as text)

set desc = "Say something to everyone in the game"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(!usr.OOC)
alert("You are muted!")
return
if(!worldC)
alert("An admin has turned off world chat.")
return
if(length(msg) >= 100)
alert("Message is too long")
return


Problem description:i can type in what i want to say but it dont show up in the chat box

You forgot to add a line where it actually sends the message.

var
worldC=1
mob/var/OOC=0
mob/verb/OOC(msg as text)
set desc = "Say something to everyone in the game"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(!usr.OOC)
alert("You are muted!")
return
if(!worldC)
alert("An admin has turned off world chat.")
return
if(length(msg) >= 100)
alert("Message is too long")
return
world<<"[src] OOC: [msg]"
In response to Flame48
Thank you dude what a noobie mistake lol

Edit: Please refrain from using profanity. Thank you in advance.
Just wondering, what the hell is that "HTML filter" supposed to do.

Look up <code>html_encode()</code>.