RoA Code
BTW, about the formatting... Don't ask... You'r brain won't hurt as much ;-)
P.S. If you know any way of making it neater and cleaner feel free to bash whats there.
ID:5451
Nov 16 2005, 3:42 am
|
|
loading RoA.dme
RoA.dm:34:error:src.class:undefined var RoA.dm:36:error:src.class:undefined var RoA.dm:38:error:src.class:undefined var RoA.dm:40:error:src.class:undefined var RoA.dm:42:error:src.class:undefined var RoA.dm:44:error:src.class:undefined var RoA.dm:46:error:src.class:undefined var RoA.dm:48:error:src.class:undefined var RoA.dm:50:error:src.class:undefined var RoA.dm:52:error:src.class:undefined var RoA.dm:53:error:src.class:undefined var RoA.dm:67:error:src.class:undefined var RoA.dm:77:error:src.class:undefined var RoA.dm:85:error:src.class:undefined var RoA.dm:93:error:src.class:undefined var RoA.dm:95:error:src.class:undefined var RoA.dm:97:error:src.class:undefined var RoA.dm:105:error:src.class:undefined var RoA.dm:107:error:src.class:undefined var RoA.dm:117:error:src.class:undefined var RoA.dm:129:error:src.class:undefined var RoA.dm:137:error:src.class:undefined var RoA.dm:139:error:src.class:undefined var RoA.dm:141:error:src.class:undefined var RoA.dm:143:error:src.class:undefined var RoA.dm:149:error:src.class:undefined var RoA.dm:151:error:src.class:undefined var RoA.dm:159:error:src.class:undefined var RoA.dm:161:error:src.class:undefined var RoA.dm:175:error:src.class:undefined var RoA.dmb - 30 errors, 0 warnings (double-click on an error to jump to it) |
and I already realized that problem with the improper formatting of DM code so I borrowed the CSS stylesheet used in the forums and and did a preview post to get the HTML code to have my website parse it properly.
|
This is going to sound like a really dumb question, but did you define src.class? Maybe you defined it as a number not a string?
|
all the code is there, perhaps I did miss defining it but I don't know what to set it as in the first place...
|
Instead of using those two switch()es, you can just do:
gender = input("blah") in list("Male","Female")
class = input("blah") in list(list of classes)
And cut out all of the switch() and following if()s... It will accomplish the same exact thing...
The appearance parts below that can also be made simpler, but it would take a bit more of a sophisticated alternative, and I don't have the time to explain this one...lol
However, I've found the (a) problem... In the appearance section, you need to indent your switch()es (and everything inside them) over one... They need to be one indent in from the if() above them...
Like:
if(gender == "blah" && class == "blah")
if(gender == "blah" && class == "blah")
(ignore the >'s, apparently, the blog comments won't allow the use of the DM tag, or 's, so I can't format the code example properly)
I don't have the time to look through the rest of that to find any more problems (although, I do notice a lot of use of the colon (:) operator, which is generally a no-no, because it is bad programming practice, but I don't see anything really terrible otherwise)