HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] How do strings work in JASS?

10-31-2008, 01:24 AM#1
thehellman
I understand that strings leak. I know that when you GameDisplayTextMessage, the string will leak. What I want to know is how to efficiently and effectively display a string, without it leaking.

On a side note, how do you properly use IssueTargetOrderById. It seems the Ability ID isn't working...
10-31-2008, 01:38 AM#2
Deaod
its impossible to avoid that leak, at least as far as i know.
10-31-2008, 01:39 AM#3
thehellman
Is it not possible to preset a string?
10-31-2008, 01:58 AM#4
Deaod
using the (exact) same string again, wont leak again.

Each spell has got a order field. Use OrderId("order") with IssueTargetOrderById.
10-31-2008, 08:44 PM#5
thehellman
How do I convert the ability code into an order ID to be used with IssueTargetOrder.
11-01-2008, 07:45 AM#6
Chocobo
search in forum for ConvOrder OrderString/Id Convertor