ID:145072
 
Code:
 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 :(


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
In response to CaptFalcon33035
thanks :D
In response to CaptFalcon33035
What does warning: empty switch statement mean>? :S
In response to Gebsbo
Can't help you on that one, I've never seen that error before.
In response to Gebsbo
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
In response to 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!!!!!!!!
In response to Gebsbo
Usually (atleast when I noticed it), it refers to something like this:
switch(...)
if(..)
else .
//Should be
switch(...)
if(..)
else .


Note the indentation of the choices

- GhostAnime
In response to Gebsbo
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 ;/
In response to GhostAnime
here's the indentation as it should be
mob/var
bought = 0
if(!usr.bought==1)
usr << "Shop Keep: Thanks for buying!"
else
usr << "what's all this sh....!"

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!