Page 1 of 1

Snooping

Posted: Fri May 29, 2009 11:47 pm
by You_Following
Somebody can give to me include file trainingskill.inc for snooping.
And that at me gives out an error at compile (Function TrainSkill: Parameter item was not passed, and there is no default)???

Re: Snooping

Posted: Sat May 30, 2009 12:31 am
by Damien.
Somewhere there is a function called TrainSkill and it's built in this way:

Code: Select all

Function Trainskill(parameter)
So as the error says there is no item parameter in the function, so it should look like:

Code: Select all

Function Trainskill(item)

Re: Snooping

Posted: Sat May 30, 2009 3:51 am
by CWO
No Damien POL doesn't care what its named it just means one of the parameters is missing from the call to the function and in the definition, its named 'item'.

there is a function in that include thats possibly like this

Code: Select all

Function TrainSkill(item)
and whatever script is calling it is just saying

Code: Select all

TrainSkill();
There could be more parameters (the error isn't specific) but notice that the second one is missing the parameter. You have to pass a parameter to fill that 'item' variable. I don't have the code so I can't give you specific help on why the item is needed or what the item is that it wants.

Re: Snooping

Posted: Sat May 30, 2009 4:22 am
by Damien.
hehe okey :oops: thanks for correcting me :D