[solved][THX] can someone plz look at code using first time Trie
Plz someone check if code is correct...
never used Trie befor so i'm not 100% sure about it thx inadvance PHP Code:
|
Re: can someone plz look at code using first time Trie
If the code compiles and works, it means the code is correct... Something you should check yourself... I don't mean to be rude, but you have a billion examples of the trie usage and once you understand the header of natives, you should have more confidence and test by yourself.
Anyway, I see nothing wrong. |
Re: can someone plz look at code using first time Trie
const arrays can be declared in pplugin_init to memory is freed after it.
Also, for example i would organize emitsound callback like this, make more sense for me : PHP Code:
Better than cvars, make a config file in which you put something like remove_doorsounds 1, if 1, fill a Trie called g_trieRemoveSounds with doors sounds names, you could then make only 1 check (trie key exists) in callback. |
Re: can someone plz look at code using first time Trie
yes it compiles and work i have test it befor i post it...
but like say i was not 100% sure if i done it correct... you are right i found some of a billion examples in the forum :wink: other way the code wont exsist :wink: but thx anyway Arkshine for confirm me that code is ok :up::D |
Re: can someone plz look at code using first time Trie
ok thx connor :wink:
|
Re: can someone plz look at code using first time Trie
any reason why you use 2 times doorsound ???
|
Re: can someone plz look at code using first time Trie
No.
Any reason you don't use edit button ? |
Re: can someone plz look at code using first time Trie
No :wink:
|
Re: can someone plz look at code using first time Trie
hmm getting this error...and entities are not removed
Code:
L 12/04/2010 - 15:56:17: Start of error session.PHP Code:
|
Re: can someone plz look at code using first time Trie
Show the current code. You may have forgotten to create the trie..
|
| All times are GMT -4. The time now is 11:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.