Raised This Month: $ Target: $400
 0% 

Array and variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-23-2006 , 18:50  
Reply With Quote #4

This is the most dynamic way I can think of.

Also, this is not a string, so it doesn't need a null terminator. It is simply an array.

Code:
#define Second 1 #define Minute 60*Second #define Hour 60*Minute #define Day 24*Hour #define Week 7*Day #define Month 30*Day #define Permanent 0 new g_HighBanMenuValues[4] = {Hour, 3*Day, Week, Permanent}

On a side note, you can do

Code:
new g_HighBanMenuValues[] = {Hour, 3*Day, Week, Permanent}

And it should work.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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