ID:148149
![]() Jun 23 2003, 11:51 am
|
|
world/mob = /mob/char_creation mob/char_creation base_save_allowed = 0 Login() spawn() src.CreateChar proc/CreateChar() var/newtitle = "New Character" var/helptext = "Please choose a name" var/default = key var/char_name = input(src, helptext, newtitle, default) as null|text if (!char_name) client.base_Choose() return var/ckey_name = ckey(char_name) var/list/characters = client.base_CharacterNames() if (character.Find(ckey_name)) alert("That name already exists!") src.CreateChar() return var/list/team = list("Red", "Blue") help_text = "Which team would you like to join?" default_value = "Red" var/char_class = input(src, help_text, prompt_title, default_value) in team var/mob/new_mob switch if ("Red") new_mob = new /mob/Red() if ("Blue") new_mob = new /mob/Blue() newmob.name = char_name switch(char_class) if ("red") src.client.mob = new_mob src.team = "Red" var/turf/first_location = locate(7, 14, 1) new_mob.Move(first_location) del(src) if ("Blue") src.client.mob = new_mob src.team = "Blue" var/turf/first_location = locate(73, 70, 1) new_mob.Move(first_location) del(src) mob Login() ..() mob/var/team mob/Red icon = 'red.dmi' mob/Blue icon = 'blue.dmi' loading CTF.dme Login2.dm:36:error: missing expression CTF.dmb - 2 errors, 0 warnings (double-click on an error to jump to it) I used Deadrons library for reference and I've looked both over but I can't find the problem with it. |
Copyright © 2025 BYOND Software.
All rights reserved.
But anyway, online 36 the switch statement is missing the (), and an argument.