Whenever I login I get a runtime error:
runtime error: bad text or out of bounds
proc name: MakeName (/mob/proc/MakeName)
usr: MorningLucifer (/mob/SkaterDude)
src: MorningLucifer (/mob/SkaterDude)
call stack:
MorningLucifer (/mob/SkaterDude): MakeName()
MorningLucifer (/mob/SkaterDude): Login()
My Login code is this:
Login()
alert("Welcome to AgressiveInline")
usr<<"AggressiveInline, made by SSCHicken!"
MakeName()
src.icon = 'Player.dmi'
src.icon_state = "Normal"
src.loc = locate (1,1,1)
world << "The skater [src] logs in!"
src << "You sucessfuly logged in!"
mob/proc/MakeName()
var/Name = input ("What do you want to be called?",key) as text
if (Name == "" || Name == null)
alert ("You have to like...type something!!")
spawn()
MakeName()
else if (length(Name) > 15)
alert("Your name is too long....if you are nice a GM might let you have a longer one later on.")
spawn()
MakeName()
else if (findtext(Name,"curse","curse","curse"))
alert("Um....NO CURSES/INSULTING WORDS IN MY GAME!!!")
spawn()
MakeName()
else
src.name = Name
No..this is not a skateboarding game....
Thank you for your help!
ID:176040
![]() Feb 19 2003, 5:52 pm
|
|
![]() Feb 19 2003, 5:55 pm
|
|
src.MakeName.....the only time you use MakeName() is when it's a global proc.
|
SSChicken wrote:
Whenever I login I get a runtime error:First off, you have MakeName() as a global proc, bad...and two, spawn() isn't used correctly. You're trying to use it as a sleep() but you don't. You must indent the stuff you want affected one line to the right beneath spawn() or else nothing will work :-\ Other then that, I see no other errors...except maybe findtext() you have too many arguments. |