- Joined
- Nov 18, 2007
- Messages
- 816
code arrays.
return bug Boolean to integer and backwards
return bug Boolean to integer and backwards
This one:
JASS:function getStringFromStringtable takes integer i returns string return i return "" endfunction
It was used to get a string from string table. I was just wondering what stuff we loose for good and this is one of them.
It has nothing to do with hashtables...
of course it doesn't, they used it before hashtables...............smell the coffee
Why don't you ask the author on wc3c.net ?Is anyone updating the TESH database so that the new functions show up in the function list?
String2Id returns the index of the string in the StringTable. I don't see how storing strings in hashtables is in any way related to this.
in that case, StringHash() will convert your string into an integer that can be used as your index in the hash table.
for example SaveString( mystringtable, StringHash("hello"), 0, "Hello")
and to retrieve it : LoadStr(mystringtable, StringHash("hello"), 0 )
thus the hashtable replaces the StringTable, LoadString()/SaveString() does the allocation/retreival, and StringHash() replaces String2Id.
Anything but that, please.You would think Blizz would ask some of the better coders at Hive for suggestions :/
Anything but that, please.
Has Blizzard made any statements about when they will update?
I can't play my map and I'm not using anything but GUI.