ID:180368
 
Hey, totally new to coding. Never even looked at it before :).. Anyone in here around 14??
Anyways on to my question.
Ok I am using A Step BYOND and just taking stuff out of it for a new game. Trying to learn whats what. Well when I compile(I'm about 1/3 of the way done with it) I have 2 errors both saying the same thing: error: bad argument definition.
Not sure what this means, I have looked around and can't find a thing. Does anyone know of a page to where I could find out what all the different errors are and how to fix them, or what they mean?
Thanx for any help.
On 7/12/01 1:00 pm Oblivian wrote:
Hey, totally new to coding. Never even looked at it before :).. Anyone in here around 15??
Anyways on to my question.
Ok I am using A Step BYOND and just taking stuff out of it for a new game. Trying to learn whats what. Well when I compile(I'm about 1/3 of the way done with it) I have 2 errors both saying the same thing: error: bad argument definition.
Not sure what this means, I have looked around and can't find a thing. Does anyone know of a page to where I could find out what all the different errors are and how to fix them, or what they mean?
Thanx for any help.


First off, Welcome to the BYOND community! I'm sure you'll enjoy your time here. Just don't get on LexyBitch's bad side o.O

Now.. About your code... To find out where the culprit is, double click on the error message at the bottom. That should highlight the line that has an error. After you do that, copy and paste the whole bit of code (starting with mob/verb, etc whatever :P) into this Forum, and mark which line is erroneus, then we can answer you :)
In response to Vortezz
On 7/12/01 1:19 pm Vortezz wrote:
On 7/12/01 1:00 pm Oblivian wrote:
Hey, totally new to coding. Never even looked at it before :).. Anyone in here around 15??

You have started on the right foot...by beginning your BYOND career using existing tutorial resources to learn to program, you instantly make the guru community here approximately 10 times more likely to go out of our way to help you.

Now, bring on the errors!
In response to Deadron
Ok, thanx for your support guys :) here is the problem..

Entered(0)

if (istype(O, /mob/pc))

var/mob/pc/player = 0

Thats the first and heres the second...

proc
Bumped(mob/M)
return

ObjectDropped(0)
return

Receive(obj/0)
return 0

Error is :
Avengers.dm:62:error: bad argument definition
Avengers.dm:109:error: bad argument definition

Avengers.dmb - 2 errors, 0 warnings
In response to Oblivian
On 7/12/01 2:46 pm Oblivian wrote:
Ok, thanx for your support guys :) here is the problem..

Entered(0)

if (istype(O, /mob/pc))

var/mob/pc/player = 0

Thats the first and heres the second...

proc
Bumped(mob/M)
return

ObjectDropped(0)
return

Receive(obj/0)
return 0

Error is :
Avengers.dm:62:error: bad argument definition
Avengers.dm:109:error: bad argument definition

Avengers.dmb - 2 errors, 0 warnings

Which is line 62, and which is line 109?

Yer making a superhero game? Kickass! I'm gonna help you as much as I can now! :)
In response to Oblivian
On 7/12/01 2:46 pm Oblivian wrote:
Ok, thanx for your support guys :) here is the problem..

You need to learn about indenting in BYOND:

http://www.deadron.com/Admin/ BYOND_FAQ.html#indentation-errors


Well you are at it, you will save a huge amount of time reading through the FAQ's newbie section (if you haven't already):

http://www.deadron.com/Admin/BYOND_FAQ.html#newbie-problems
In response to Vortezz
Which is line 62, and which is line 109?

Yer making a superhero game? Kickass! I'm gonna help you > as much as I can now! :)


LoL, Trying to :P Just typing the code from A Step atm, but ill fix it up into my own and (hopefully better) version.

line 62 is: if (istype(O, /mob/pc))

ObjectDropped(0)
line 109 is: return
In response to Oblivian
On 7/12/01 2:46 pm Oblivian wrote:
Ok, thanx for your support guys :) here is the problem..

Entered(0)

if (istype(O, /mob/pc))

var/mob/pc/player = 0

Thats the first and heres the second...

proc
Bumped(mob/M)
return

ObjectDropped(0)
return

Receive(obj/0)
return 0

To the untrained eye it isn't readily apparent. But, all the same, it is there. =)

What you are doing is making obj/'zero', not obj/'oh'. That is an illegal variable name.

You'd want the O as in the letter, not the zero.
In response to Deadron
On 7/12/01 2:50 pm Deadron wrote:
On 7/12/01 2:46 pm Oblivian wrote:
Ok, thanx for your support guys :) here is the problem..

You need to learn about indenting in BYOND:

http://www.deadron.com/Admin/ BYOND_FAQ.html#indentation-errors


Well you are at it, you will save a huge amount of time reading through the FAQ's newbie section (if you haven't already):

http://www.deadron.com/Admin/BYOND_FAQ.html#newbie-problems

Alright I'll check it out, have read the FAQ just not all of it. thanx about the (0) (o) thing :) Got it fixed.