The vars;
mob/var
Face='Graphics/Blank.dmi'
UZU='ProfilePngs/Naruto1.png'
mob
verb
EditProfile()
set hidden = 1
switch(input("Which part of your profile would you like to edit?") in list ("My Image","Cancel"))
if("My Image")
switch(input("Please select from the list of current image's you have.") in list ("Naruto {Part 1}","Cancel"))
if("Naruto {Part 1}")
usr.Face=UZU
usr.RefreshProfile()
else
return
else
return
mob/proc
RefreshProfile()
usr<<browse_rsc(Face,"Face.png")
usr << browse({"
<head><center><title>"[src.key]"</title></center></head>
<body bgcolor=gray text=black>
<br><font face="Garamond" size="3px" color="black">
<table border bgcolor=white text=black align=right>
<tr>
<th colspan="2" class="mainheader" bgcolor="#C0C0C0"><center>"[src.key]"</center></th>
</tr>
<tr>
<td colspan="2"><center><IMG SRC="Face.png"></center></td>
Problem description:Whenever I test the this in-game, I click the profile command it takes me to there and I get this RunTime Error.
runtime error: bad resource file
proc name: RefreshProfile (/mob/proc/RefreshProfile)
source file: Profiles.dm,3
usr: (/mob)
src: (/mob)
call stack:
(/mob): RefreshProfile()
(/mob): ToProfile()
Not sure why this is happening, Tell me if any other specific coding is needed.