OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: klavan on 14 May 2005, 17:51:18
-
I need help with the sintax, as the following is wrong: i've always receive error message like <<error hint: array, expected string>>
hint [format [localize "STRM_Stat_1"], _grnum, _dbehav, _dform, _dsoldiers, _group]
The string should be as the following:
STRM_Stat_1,"Group %1\nRadio name: %5\nBehaviour: %2\nFormation: %3\nNumber of units: %4\nEmbarked: YES","Gruppo %1\nNome radio: %5\nApproccio: %2\nFormazione: %3\nNumero di unità: %4\nImbarcato: SI'"
Can anyone help, please?
Thanks for your help!
-
For me it is problem with "format" and it should look like:
hint format ["%1", localize "STRM_Stat_1"], _grnum, _dbehav, _dform, _dsoldiers, _group]
-
My guess is
hint format ["localize {STRM_Stat_1}", _grnum, _dbehav, _dform, _dsoldiers, _group]
assuming the string in the stringtable has %1, %2 and so on scattered throughout it in the right places. It's hard to see on the Code posted above.
-
Eheheh! None of your solutions were right, but mac's suggestion reminds me the traslation I've did for Un-Impossible Mission and a particular line of it's .csv. So I've de-PBOed the mission and found the solution:
hint format [localize "STRM_Stat_1", _grnum, _dbehav, _dform, _dsoldiers, _group]
Thank you guys.
PS.
@mac
About 3 weeks ago, after 27 (!!!) attempts, I completed it, but please don't make another mission like that no more! ;D
-
Well done klavan! :thumbsup:
Don't worry, the next one - Regina Proeliorum, which I hope will be released in about September/October, will be much easier. You can do translation for that too if you like.
*gets back on topic*
Told you I was crap at syntax. ;D
-
Don't worry, the next one - Regina Proeliorum, which I hope will be released in about September/October, will be much easier. You can do translation for that too if you like.
Naturally! ;)