ID:168560
 
Im starting to feel like a noob all over again :) thats what I get for playing with toys that i forgot about.

well... Im making a shop system that uses browse_rsc to put a icon next to the link to buy it. o.O when I use

src<<browse_rsc(O.icon,"icon.dmi")


it makes all the objects have the icon of the last object. and when I do

var/num
num+=1
src<<browse_rsc(O.icon,"icon[num].dmi")

The pictures show up as not existing, So it poses the question.... How is this going to work out!
If this icon is already included in the game's compiled resource, I don't beleive you need to send it to the cache using browse_rsc(). As for displaying the icon, use \icon[objwithicon].