ID:883394
 
Code:
mob/Login()
usr.icon = 'Base.dmi'
world << "<font color = red>Welcome [src] we thank you for joining!"


Problem description:The icon although it is coded correctly it wont show as yoour base icon on the map any idea whats going on?

src.icon wont work either i tried that lol
try using

<img src=[usr.icon]>
Make sure icon_state is correct.
Add ..() at the end.
ok thx
It didnt work =\ both of the ideas
Does the icon have any icon_states without names? If not, there's your issue. You either need to make a default blank icon_state, or assign an icon_state along with icon.
Yea ssx the i tried to make it with naming the icon states and without still nothing =\
Try doing this:
mob
icon = 'Base.dmi'


If you have an icon state inside of 'Base.dmi' that has no name, mobs will have this icon. If you don't have an unnamed icon state, their icon will be blank until you assign an icon_state to them.
hmmmmmmmmmmmm @ albro1 nope :/ idk wtf is going on its not just this icon as well -_-
Show us a screenshot of the contents of 'Base.dmi'.
and albro1 it doesnt have a icon_state so lol
It could be a number of things; most commonly it would be something with the icon. I recomend that someone who knows something about developement take a look at your icon to ensure it's not the cause.

After that; it's probaly something in the code that causes the icon to null out. I would search for all instances of .icon in your files to make sure.

After THAT; why would you use usr in Login()? Though I haven't toyed with Login() in awhile; I'm sure you shouldn't call usr in it.

After THAT; ensure the icon have the exact name you're assigning it in the code.

After THAT; ensure you're either automaticly including the file with your code or manualy via #include.
In response to Angel_heat
It doesn't have any icon states? Why're you wasting our time?
None of that Worked Sketh :\ either way i tried using src and usr and yes the dme file has the code file and everything is correct.........and yes it does have icon states =\ still nothing
In response to Albro1
Albro1 wrote:
Show us a screenshot of the contents of 'Base.dmi'.

      mob/Login()
src.str = 10
src.def = 5
src.health = 100
src.loc = locate(93,92,1)
src.icon = 'Base.dmi'
world << "<font color = red>Welcome [src] we thank you for joining!"


thats the new code everything works but the icon lol
In response to Albro1
Albro1 wrote:
Albro1 wrote:
Show us a screenshot of the contents of 'Base.dmi'.


Photobucket
Dont mind the TV i had a friend trying to help lol
Page: 1 2