I am making my own game but i allways have 2 errors it say this:missing left-hand argument to
I need someone to tell me what that meeans and how to fix it.
Thx for help
ID:273108
![]() Sep 15 2009, 8:07 am
|
|
This is how it looks like so maybe it will be easyer to help me:
obj/proc Scroll icon="scroll" icon_state="1" verb/Use() usr.HP+=1000 usr<<"You reed a scroll" if (usr.HP>usr.MaxHP)>>usr.HP+=usr.MaxHP) del src |
With the way you code you could have any number of bugs but for that script in particular here is a corrected version.
mob/Scroll |
Chowder wrote:
With the way you code you could have any number of bugs but for that script in particular here is a corrected version. > mob/Scroll Thx my former erros did disapeard but the new two schowd up Items.dm:5:error: [: expected } Items.dm:5:error: location of top-most unmatched { |
obj/Scroll |
Jedien Yuki wrote:
obj/Scroll Please post all your code inside <dm>CODE HERE</dm> tags, this will display code on the forum exactly as it appears in Dream Maker. For your problem, you have [set src in view(1)]. You can't use the characters [ and ] there, as it isn't part of the DM syntax. Remove the [ and ]. |
code\Main.dm:9: Inconsistent indentation.
code\Main.dm:10: Inconsistent indentation. code\Main.dm:11: Inconsistent indentation. code\Main.dm:12: Inconsistent indentation. code\Main.dm:14: Inconsistent indentation. code\Main.dm:15: Inconsistent indentation. code\Main.dm:16: Inconsistent indentation. code\Main.dm:17: Inconsistent indentation. code\Main.dm:20:error: status: expected end of statement code\Main.dm:28:error: .: missing comma ',' or right-paren ')' code\Main.dm:28:error: .: expected end of statement code\Main.dm:28:error: ): expected } code\Main.dm:28:error: location of top-most unmatched { this errors come wtih youre script |
#define DEBUg This error showd up after i fixd other errors code\Main.dm:14:error: proc definition not allowed inside another proc |
Might not work the way you planned it to.
I had to delete a few parts to make it work. #define DEBUG |
Chowder wrote:
Might not work the way you planned it to. > #define DEBUG I dont belive it every time you fix one of my errors at least 7 new shows up |
Here is my new problem
mob/SOGuard And errors are: code\Monsters.dm:12:error: New: expected end of statement code\Monsters.dm:21:error: missing condition code\Monsters.dm:22:error: src: missing comma ',' or right-paren ')' code\Monsters.dm:22:error: src: expected end of statement code\Monsters.dm:28:error: ): expected } code\Monsters.dm:20:error: location of top-most unmatched { |
I am sorry to say so, but you might want to consider learning what some of the programming syntax means before you are using it.
Everything you have posted here so far can be fixed within seconds of taking your time and reading up on how you are supposed to interact with Dream Maker. |
Schnitzelnagler wrote:
I am sorry to say so, but you might want to consider learning what some of the programming syntax means before you are using it. maybe soo but in that what you told me to see i dont know whta i am supouse to search.And i will lerne a lot bettter if someone shows me on this forum then on this site you told me to see. |
The guide you do not search but read and work with from the beginning through to the end.
The reference should be rather simple, once you have learned enough from the guide. You say that you learn a lot better by people tossing you code snippets, but, asides from this being generally unrealistic and not logic at all, you have proven thrice now that this is simply not the case. |
proc definition not allowed inside another proc
#define DEBUG in this i have error calld proc definition not allowed inside another proc and i dont know how to fix it so if someone knows plz help. |
How to fail at game programming