Raised This Month: $ Target: $400
 0% 

Array and variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 03-23-2006 , 17:21  
Reply With Quote #2

could i define each value as a variable like this:

(it is basic syntax, and hope someone can translate)
dim 1Hour as integer
dim 3Days as integer
dim 7Days as integer
dim Permanent as integer

1Hour = 3600
3Days = 259200
7Days = 604800
Permanent = 0

new g_HighBanMenuValues[4] = {1Hour,3Days,7Days,Permanent}

And when the array is called the value given to the function will be the integer value of the variable.

Cold i do it like that ?
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
 



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 16:38.


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