The Whole Source
Problem description:It says i have errors in different places when i didnt have them before it says i have an error with stuff like turf and objs
ID:142388
Jun 12 2008, 8:31 am
|
|
Code:I coded a test world in other words a begining of a game.
The Whole Source Problem description:It says i have errors in different places when i didnt have them before it says i have an error with stuff like turf and objs |
Jun 12 2008, 8:37 am
|
|
What are the errors?
|
In response to Kaiochao
|
|
coding\Turfs.dm:1:error::invalid expression
turf Thats the whole Turf File |
In response to Chrislee123
|
|
Check the code file that is before turfs.dm in the list for errors.
|
In response to Chrislee123
|
|
Show the last few lines in a file before that.
Sometimes BYOND points the error line a line ahead. |
In response to Kaioken
|
|
Thats the file above it
File Name = Objs obj |
In response to Chrislee123
|
|
Other than very bad code, I see no invalid expressions
|
In response to Kaiochao
|
|
Exactly and my coding aint that bad but anyway what do u suggest cause i cant run it or access the map cause its errored
|
In response to Kaiochao
|
|
That may be due to his incorrect use of spawn() (the error should also generally be at the end of that file, because it pointed him to the next file), which tends to sometimes compile (I consider this a bug) but I guess it properly throws an invalid expression error when it's in the end of a proc.
@Chrislee: No, I'm sorry, but you do code pretty horribly. Your spawn() usage is bad. You also clearly don't really know how to use spawn() at all. Look it up in the DM Reference. It is meant to have a block of code belonging (eg: indented) to it, like an if() statement does: //proper use of spawn statement |
In response to Chrislee123
|
|
Chrislee123 wrote:
> Tollen_Device Replace the first spawn() call with a call to the sleep() proc, and just delete the second one, since it doesn't do anything. |