ID:140245
 
Code:
mob
verb
createcharacter()
set hidden=1
set category="SkinVerbs"
switch(char_name=input("Who are you?","Idenitity"))
if(lentext(char_name)>11)
return
// if(html_encode(char_name))
else
src.name=char_name


Problem description:
I dont know if i am doing this correctly , but i want the client to have a name no longer than 11 characters with no htmls.

loading Dragonballz un.dme
CharacterHandling.dm:58:error: : missing expression
CharacterHandling.dm:59:error: : expected a constant expression

Dragonballz un.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)
do
name = input()
while(name_is_invalid(name))

mob/proc/name_is_invalid(var/name)
if(name.len > 11)
src << "Too long"
return 0
if(html_encode(name) != name)
src << "No HTML"
return 0
return 1