07-28-2012, 16:48
Pages: 1 2
07-28-2012, 17:15
Hashtables
Look in EpicZombieMod[Unfinished] thread, there's code
thanks to @JariZ he's learned me how hashtables do work
Look in EpicZombieMod[Unfinished] thread, there's code
thanks to @JariZ he's learned me how hashtables do work
07-28-2012, 22:37
do you mean zombie epidemic mod?
i have the old version but i dont understand it
i have the old version but i dont understand it
07-28-2012, 23:43
Then learn C#?
07-29-2012, 00:21
(07-28-2012, 17:15)JayDi Wrote: [ -> ]Hashtables
Look in EpicZombieMod[Unfinished] thread, there's code
thanks to @JariZ he's learned me how hashtables do work
Hashtables are ew, not to mention they leave unnecessary explicit type casting since it takes any object. You should be using Dictionaries.
Quote:There is little benefit to use Hashtable class if you are targeting for .NET Framework 2.0+. It's effectively rendered obsolete by Dictionary<TKey, TValue>.
Code:
// Zombie classes
Hashtable isIceZombie = new Hashtable();
Hashtable isBlastZombie = new Hashtable();
Hashtable isToxicZombie = new Hashtable();
// points
Hashtable Points = new Hashtable();
// commom
Hashtable Kills = new Hashtable();
Hashtable MKill = new Hashtable();
Code:
// Zombie classes (why did you even use an integer for these?)
Dictionary<string, bool> isIceZombie = new Dictionary<string, bool>();
Dictionary<string, bool> isBlastZombie = new Dictionary<string, bool>();
Dictionary<string, bool> isToxicZombie = new Dictionary<string, bool>();
// points
Dictionary<string, int> Points = new Dictionary<string, int>();
// commom
Dictionary<string, int> Kills = new Dictionary<string, int>();
Dictionary<string, int> MKill = new Dictionary<string, int>();
07-29-2012, 11:31
Why not just use self.points? Curious to know since I am working on optimizing my code a bit.
07-29-2012, 13:07
(07-29-2012, 11:31)Cyborgking Wrote: [ -> ]Why not just use self.points? Curious to know since I am working on optimizing my code a bit.
It is NOT gsc modding. It is not modding.
We can't create custom values etc. Only by directionaries/system.io/hashtable
EDIT: oh nvm, it is black ops thread xDDDD
yea, it is possible,
put player.points = 0; in connect event.
Then do what do you want.
07-30-2012, 06:26
08-01-2012, 07:14
lol yer im reading this thinking "wtf" , to much mw3 for you guys .. xD
Pages: 1 2