Say I have two lists (list a and b). b contains parts of a. I want to be able to return the position of all of the elements in b from a.
Here is my code so far:
var
metals=list("a","b","c","d","e","f","g")
solace_available=list("a","b","f")
proc
Update_Solace_Costs()
for(var/i=1,i<length(solace_available),i++)
var/m = metals.Find(solace_available[i],1,0)
world << m
Problem description:
When I compile it just says this:
Solace Stock.dm:13:error:metals.Find:undefined proc
I just can't work out what going on.
Thanks for any help that you can offer.
- GunRunner
Sorry guys but I worked it out. I hadn't defined my list with the type var/list/<list name> and hence the .Find list proc wouldn't recognise my lists as lists. Thanks anyway for reading and sorry for posting when I shouldv'e just kept workign at it.
- GunRunner