Raised This Month: $ Target: $400
 0% 

what is faster? switch or an array?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 03-31-2009 , 13:41   what is faster? switch or an array?
Reply With Quote #1

PHP Code:
damage *= weapon_damage[get_weapon_id.... 
or
PHP Code:
switch (get_weapon_id...
{
case 
CSW_DEAGLEdamage *= 
which is better? this would be called in ham_takedam
Speed! is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:20.


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