hey all! i just wanted to thank those who have helped me recently...but now more problems with Dream Maker...
I was able to fix the last problem this morning, and now more problems....no inconsistent indentations (thanks crispy for telling me to turn on the show tabs option! that did help alot!) heres the problem, its with the same area of coding so im just going to post the errors...
dragonballs.dm:194:error:'Good':cannot find file
dragonballs.dm:197:error:'Evil':cannot find file
dragonballs.dm:194:error::expected a constant expression
dragonballs.dm:197:error::expected a constant expression
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hehehe....ive tried everything, including taking out the parentheses, taking them down to an ['] and taking them out completely! and i keep getting errors that are starting to get frustrating because everything i try in an attempt to fix said errors, doesnt work...does any one have any tips?
ID:173941
Oct 24 2003, 5:18 am
|
|
In response to Troglodyte
|
|
Trog, i realize that with the way i had it set up to get those errors, {good} and {evil} were put into DM as dmi files...i was at the end of my last brain cell before complete cerebral(sp??) shutdown...so i reset the code to the way i had it originally and these are the errors i had in the first place:
dragonballs.dm:194:error::expected a constant expression dragonballs.dm:197:error::expected a constant expression now, for that little snippet of code that is causing complete and utter neural chaos on my mind....it is the lines in my original post, if (usr.alignment=="Good") and (usr.alignment=="Evil") those are lines 194 and 197 in my dragonballs.dm file...i hope this helps..^_^" because im using this file as the basis for the namekiean dragon balls...and if there are errors in this file, then i feel that there are going to be errors in the namekiean file... |
In response to Rashka
|
|
thats all the line is? jsut that? can you copy say from line 190 to 200 and post it? Then i can get a better look at what your trying to do.
Trog |
In response to Troglodyte
|
|
sure..here it is...
if ("Immortality") usr.maxpowerlevel = 9999999 usr.overlays += 'elec.dmi' if (usr.alignment=="Good") usr << "You are now an Immortal! Protect and avenge those around you in the universe!" world << "[src] is now an Immortal! They shall now protect the universe!" if (usr.alignment=="Evil") usr << "You are now an Immortal! Let the universal spree begin!" world << "[src] is now an Immortal! They shall now destroy the universe!" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ hope that helps...^_^! if you want to, just page my key...or if you have AOL Instant Messenger, IM me on Rashka Kiernan |
In response to Rashka
|
|
if ("Immortality") Indent everything by one tab as shown there. |
In response to Loduwijk
|
|
Also, "Immortality" will ALWAYS be true. I suspect you meant to see if something was equal to "Immortality".
|
In response to Crispy
|
|
Not quite. It reads if("Immortality") because it is within a switch. I knew that because I talked via Aol instant messenger about it. ;)
I said the same thing at first when talking about it, then realised it was within a switch when I saw a bit more of the code. |
In response to Loduwijk
|
|
Oh, it's in a switch... well, that's okay then. =P
|
I tested this thoery, and I defined 2 icon files, one mob and one turf like this.
and these are the errors I got, very similar to yours:
crap.dm:6:error:'guy':cannot find file
crap.dm:10:error:'grass':cannot find file
so thats what I'm guessing your problem is, if not though I could tell you exactly what your problem is if you posted the snippet of code thats giving you problems.
Trog