Jump to content
Sign in to follow this  
Xen0tech

Can someone spot whats wrong here?

Recommended Posts

I used to be able to add images to my briefing and to the mission title screen. I forgot how to so tried searching for way and this is what I came up with. I put the following lines into a briefing.sqf file.

player createDiaryRecord ["Diary", ["Intel", "Here is a recent picture of your target"]];

<img image='colonel.jpg'/>;

The image itself is named colonel and its a 102x102 jpg stored in the mission folder. When I load up the mission I get an error message that says invalid number in expresion. Any ideas why?

Share this post


Link to post
Share on other sites

Also tried converting to paa and changing dimensions like this but still no joy :(

player createDiaryRecord ["Diary", ["Intel", "Here is a recent picture of your target"]];

<img image='colonel.paa' width='200' height='200'/>

Share this post


Link to post
Share on other sites

Try making the image 128 x 128 or 256 x 256.

Share this post


Link to post
Share on other sites

Just tried that but had no luck :( Is 44kb too big maybe?

Edited by Xen0tech

Share this post


Link to post
Share on other sites

Put it like this:

player createDiaryRecord ["Diary", ["Intel", "Here is a recent picture of your target </br> <img image=colonel.jpg'/&gt]];

it should work :)

Share this post


Link to post
Share on other sites

Yes thank you I eventually figured it out myself. Stupid me had the image line by itself outside the rest of the script

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×