Raised This Month: $ Target: $400
 0% 

Is there a faster way to do this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lunarwolfx
Member
Join Date: Feb 2005
Old 03-22-2005 , 20:38   Is there a faster way to do this?
Reply With Quote #1

I'm was thinking the other day about changing speeds based on levels, and I came up with this.
Code:
if(level[id] == 1) {

set_user_maxspeed(id,320.0)
}
else if(level[id] == 2) {

set_user_maxspeed(id,321.0)

}
etc....

I was just wondering if there is a faster way then making a mess of ifs and else ifs.
lunarwolfx 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 09:55.


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