ID:1232230
 
(See the best response by Albro1.)
Code:
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.


You have your arguments backwards. The file needs to come first.
What do you mean?
In response to Marcus55
Oh, and two other things. Use src in procs, and you also need to make Face a text value.

usr<<browse_rsc(Face,"Face.png")


Needs to be:
src<<browse_rsc('Face.png',"Face")


Press F1 in Dream Maker, go to the Topic tab and start typing browse_rsc(). Read the entry on it.
That didn't work, But I'm reading the browse_rsc now.
In response to Marcus55
Best response
In the example provided in browse_rsc()'s reference, the <img> does not have quotations around the referenced image. Meaning:

You have:
<img src = "Face.png" />
And you should use:
<img src = Face.png />
Thanks, It worked. I understand it now.