Jump to content
SlovakianLynx

How to create a hint with picture and text?

Recommended Posts

This is getting so frustraiting! I have been trying to figure out how to make a hint with picture and text underneath it for two days, but every time the hint pops up an error, or just doesn't show up at all. 

 

Here is the latest script:

hint parseText "<img image="pics\slynx_WW2_SAS_Objfail.paa"/></img> <br/><br/><t size='1.2'>You failed to find Schumman</t> ";
obj_1 setTaskState "FAILED";
playSound "fail";
player addRating -2000;
sleep 5;
enableRadio False;
clearRadio;
5 fadeMusic 0;
["lose",false,5,false] spawn BIS_fnc_endMission;

It also does not work, when I try to show only the picture without text, however, when I want to show the text only, that works.

What am I doing wrong, or is there a better way to do it?

 

I've also seen some scripts for this with multiple lines, but, that was too much for my simple brain.

Share this post


Link to post
Share on other sites

@SlovakianLynx, use either

<img image="pics\slynx_WW2_SAS_Objfail.paa" />

or

<img image="pics\slynx_WW2_SAS_Objfail.paa"></img>

 

Share this post


Link to post
Share on other sites

@SlovakianLynx, also it's not allowed to use quotes inside quotes and apostrophes inside apostrophes. This code should work:

hint parseText "<img image='pics\slynx_WW2_SAS_Objfail.paa'/><br/><br/><t size='1.2'>You failed to find Schumman</t>";

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
10 minutes ago, Schatten said:

@SlovakianLynx, also it's not allowed to use apostrophes inside quotes and vice versa. This code should work:


hint parseText "<img image='pics\slynx_WW2_SAS_Objfail.paa'/><br/><br/><t size='1.2'>You failed to find Schumman</t>";

 

That works! Thanks man, you'we been a huge help.

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

×