Raised This Month: $ Target: $400
 0% 

Help with, I think, a math problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 03-15-2006 , 10:56   Help with, I think, a math problem
Reply With Quote #1

I have the following code:

Code:
if(something == 10){     //code } if(something == 20){     //code } if(something == 30){     //code }

I want it so that it will last near infinity. I dont want to keep adding a snippet of code every 10 as I will have quite a lot of code.

I was wondering if there was a way so that it could check every 10 until near infinity, without using so much code.
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
 



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 20:14.


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