Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: vittu
Forum: Scripting Help 11-03-2010, 21:39
Replies: 49
Views: 9,095
Posted By vittu
Forum: Scripting Help 11-03-2010, 20:20
Replies: 49
Views: 9,095
Posted By vittu
Re: Regeneration not stacking (How?)

This is where a switch would be better

public sh_hero_init(id, heroID, mode)
{
switch(heroID)
{
case gHeroID: gHasRegen[id] = mode ? true : false
case WolvID: gHasWolv[id] = mode ? true...
Forum: Scripting Help 11-02-2010, 20:57
Replies: 49
Views: 9,095
Posted By vittu
Re: Regeneration not stacking (How?)

Well engine is actually easier to code for and should be easier to read, but engine is not capable of everything fakemeta can do.


As for whatever it is you are doing here, use plugin_cfg to get...
Forum: Scripting Help 11-02-2010, 17:53
Replies: 49
Views: 9,095
Posted By vittu
Re: Regeneration not stacking (How?)

Yes that is what he meant.

"if" "else" is generally more efficient if there are only 2 statements over a using a switch, switch only becomes more efficient when there are 3 or more statements.
...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 19:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode