07-28-2012, 16:48
i would like to know how to make a working point system.
|
Point system
|
|
07-28-2012, 16:48
i would like to know how to make a working point system.
Hashtables
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
07-28-2012, 23:43
Then learn C#?
Do not take life too seriously. You will never get out of it alive.
(07-28-2012, 17:15)JayDi Wrote: Hashtables 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>();![]() A casual conversation between barata and I about Nukem.
07-29-2012, 11:31
Why not just use self.points? Curious to know since I am working on optimizing my code a bit.
Would like to make a donation? Click here
(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
(07-29-2012, 18:44)JariZ Wrote: It's a black ops thread, everyone failed including @master131 Doesn't matter, at least I gave you a coding tip.
![]() A casual conversation between barata and I about Nukem.
08-01-2012, 07:14
lol yer im reading this thinking "wtf" , to much mw3 for you guys .. xD
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie Twitter: https://twitter.com/#!/rotceh_dnih ![]() |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
|
|
Help Upgrade my point system from files to Database, help? | EnVi Sweden Rocks | 11 | 12,337 |
08-03-2013, 23:31 Last Post: EnVi Sweden Rocks |
| [Request] Login / Register System? | South2AKA | 5 | 6,906 |
07-17-2013, 13:50 Last Post: surtek |
|
| Help Icon/point on radar | 8q4s8 | 2 | 3,923 |
05-06-2013, 16:49 Last Post: 8q4s8 |
|
| Ban system | xGo | 3 | 4,649 |
12-07-2012, 19:42 Last Post: 8q4s8 |
|
| [Request] Halo 2 MLG style Sheild system. | Twizzy | 2 | 3,517 |
07-25-2012, 02:08 Last Post: Twizzy |
|
| [Release] Mod Menu System Beta1 | d0h! | 3 | 6,236 |
06-27-2012, 04:52 Last Post: GamingTV |
|
|
|
Petition to remove Rendflex's 10 point warning | JariZ | 3 | 4,140 |
06-04-2012, 19:04 Last Post: SuperNovaAO |
| [Release] BO Ultimate Admin System V1 | alistair3149 | 31 | 31,607 |
04-06-2012, 09:56 Last Post: OrangePL |
|
| MW2 Ultimate Admin System v3 | d0h! | 15 | 39,869 |
04-03-2012, 08:19 Last Post: alvarogt95 |
|
| [Request] Money System | BillTurbineGR | 9 | 6,413 |
03-28-2012, 21:27 Last Post: BillTurbineGR |
|
| Users browsing this thread: |
| 2 Guest(s) |