OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kuro on 29 Jan 2003, 05:35:34

Title: Display Variables in the Game
Post by: Kuro on 29 Jan 2003, 05:35:34
Hello,

maybe a very stupid question:
i have a Variable MyNumber containing a number, now i want to display it  in the game with

hint MyNumber

but OFP says no string error !
Is there a Num2String Function i am to stupid to find ? Or should i go to implement one ?

With best Regards
Kuro
Title: Re:Display Variables in the Game
Post by: Ottie on 29 Jan 2003, 08:19:46
Hint FORMAT["MyNumber %1", MyNumber]
Title: Re:Display Variables in the Game
Post by: Kuro on 29 Jan 2003, 15:18:49
Many Thanks,

Yours Kuro
Title: Re:Display Variables in the Game
Post by: RunAwayScientist on 03 Feb 2003, 07:44:56

    ACk, I've been having a bit of on the spot trouble with the variables my-self. Nothing like keeping the topic alive...

      I need to know if I've got it down right. You see, on my Role-Play Northern Everon Multiplayer Civillian Life Simulator, after you buy something, I'd like it to, "hint", your bank-account amount. How? I may have just found out...PLease tell me if this is correct:

  (Player1ACC is the name of the Player1's Account)

Hint FORMAT[" You have: Player1ACC %1", Player1ACC"]


 -RunAwayScientist
Title: Re:Display Variables in the Game
Post by: Ottie on 03 Feb 2003, 08:17:01
It must be :

Hint FORMAT[" You have: Player1ACC %1", Player1ACC]