OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Silencer on 25 Feb 2005, 13:09:11

Title: Variable dialog text!
Post by: Silencer on 25 Feb 2005, 13:09:11
Hi!

I have a question. I have made a (variable) text in a dialog with ctrltext.
I can see in a hint what text that was (e.g.: I pressed button 1, button 0 and button 0 again) The text is now: 100

I can see this in a hint! So that workes fine.

I want: 300 - the text          (e.g.: 300 - 100)
How can I do this?

Thanks.
Title: Re:Variable dialog text!
Post by: dmakatra on 25 Feb 2005, 13:31:30
This (http://www.ofpec.com/editors/funcref.php?filter_func=32) is probably what you are looking for. :)

:beat: *Gets Shot* :beat:
Title: Re:Variable dialog text!
Post by: bored_onion on 25 Feb 2005, 18:07:43
yeah, i reckon its just a problem using a string as a number. if you see an error message it will read "Type:String;Expected:Number" or something if that it is your problem.