Snooping

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.

Moderator: POL Developer

Post Reply
You_Following
New User
Posts: 3
Joined: Fri May 29, 2009 10:49 pm

Snooping

Post by You_Following » Fri May 29, 2009 11:47 pm

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)???

Damien.
Journeyman Poster
Posts: 63
Joined: Thu Feb 08, 2007 11:14 am
Location: Sweden

Re: Snooping

Post by Damien. » Sat May 30, 2009 12:31 am

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)

User avatar
CWO
POL Expert
Posts: 1140
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Snooping

Post by CWO » Sat May 30, 2009 3:51 am

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.

Damien.
Journeyman Poster
Posts: 63
Joined: Thu Feb 08, 2007 11:14 am
Location: Sweden

Re: Snooping

Post by Damien. » Sat May 30, 2009 4:22 am

hehe okey :oops: thanks for correcting me :D

Post Reply