TrieSetArray
I was trying to learn about Tries, but I'm so confused then I decided to post it here.
Thats my code: PHP Code:
The problem is: The Chance is showing 0, why? .ini: Code:
ACE = 1 EVENTCHANCE 2 PHP Code:
Code:
Chance: 2, Data[eChance]: 2, eData[eChance]: 0 |
Re: TrieSetArray
eData is never set.
Also, you misunderstand something about Trie. You associate a key (string) to a value (cell, string or array). I'm not totally sure what you're trying to do with Trie here. |
Re: TrieSetArray
I'm just trying to understand more than now. Like how to get a value in string, array, because that tutorial haven't all things - https://forums.alliedmods.net/showthread.php?t=201872
|
Re: TrieSetArray
This tutorial has examples on how to retrieve a string or array.
You should explain what you don't understand exactly. If you mean dealing with enum structure which can include array/string, then you need Trie*Array (last example of the link). You should first fix your code to use a real key. |
Re: TrieSetArray
I already fixed it by myself. I can post the solution here but its about the my Round End Events, so will not be helpful to others members.
|
| All times are GMT -4. The time now is 18:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.