mob/var//
bought = 0
if(usr.Bought==1)
usr << "<font color = white>Shop Keep:</font> Thanks for buying!"
return
Problem description:
It keeps on saying inconstent identification it keeps saying tht and nothing i do will fix it :(
ID:145072
![]() Jun 21 2006, 6:15 am (Edited on Jun 21 2006, 9:05 am)
|
|
Code:
mob/var// Problem description: It keeps on saying inconstent identification it keeps saying tht and nothing i do will fix it :( |
![]() Jun 21 2006, 6:26 am
|
|
I beleive it might be saying inconsistent indentation. Do you know how to indent your work? You have to be using the tab key. Maybe you could pick up a few things from demos and libraries, and of course, the guide.
|
No, it says "inconsistent indentation". If you can't read the error, you can't fix the error. When in doubt, copy and paste.
In this case the indentation error comes from mixing tabs and spaces. Use Ctrl+T to see how tabs and spaces appear in your project. Indent with one or the other, but not both. Lummox JR |
Gebsbo wrote:
What does warning: empty switch statement mean>? :S I suggest you bookmark this page. =/ However, I doubt that page lists warnings. Would you care to provide the code producing the problem? Hiead |
hey you trie the code it wont work still
mob/var// bought = 0 if(!usr.bought==1) usr << "<font color = white>Shop Keep:</font> Thanks for buying!" else HELP!!!!!!!! |
Usually (atleast when I noticed it), it refers to something like this:
switch(...) Note the indentation of the choices - GhostAnime |
Urgh, that code is BYOND mutilated (:P)
1) Enter the codes in <DM>CODE HERE</DM> [DM tags] 2) OMG...so... horible problems found: - Get rid of the // after mob/var (will prob. reduce the file size by 1 BIT!!! ;p - What do you mean by if(!usr.bought==1)??? Read this link!!! - Why are the lines indented so far in when there's no reason (unless you clipped out some parts of the code? - Why are you having that if(!var==1) line happening right after the variable has been declared as FALSE? - GhostAnime rules ;/ |
here's the indentation as it should be
mob/var use tabs, theyre clearer, spaces are so small. I dont know what you want to with the code, drive us all mad??? what is "if (NOT bought equals 1)" and what do you want THAT to do? Do you understand the logic? customer:If I didnt buy what I bought... Shopkeeper:Youre a damn thief! |