Jump to content
Sign in to follow this  
1para{god-father}

How to Show A Public Varable Number in a Message ?

Recommended Posts

I store a Number in a PV

i.e Totalscore= 200

But how can I show that on the below as ?

if ((side player) == west) then {cuttext["Your Score is xxx","BLACK FADED",20];}

Share this post


Link to post
Share on other sites

If you look into the stuff I gave you, it has formatting, even for rHint.

hint format ["%1", somevariable];

Share this post


Link to post
Share on other sites

I did try that but i get an error missing " ] " but i cannot see why ?


if ((side player) == west) then {titleText FORMAT["Total Score is %1" totalscore,"BLACK FADED",20];};

Share this post


Link to post
Share on other sites

Try it with the basic hint format. Without any effects. Then we can work from there.

Share this post


Link to post
Share on other sites

if ((side player) == west) then {titleText [format ["Total Score is %1", totalscore],"BLACK FADED",20];};

Or

if ((side player) == west) then {titleText ["Total Score is " + str totalscore,"BLACK FADED",20];};

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  

×