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-24-2006 , 01:13  
Reply With Quote #8

Tried to make the piggyback thing i guess
But yet again the code might be basic.

The original handling of the user choise:

if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN)
{
switch(g_menuOption[id])
{
case 0: g_menuSettings[id] = g_HighBanMenuValues[0]
case 1: g_menuSettings[id] = g_HighBanMenuValues[1]
case 2: g_menuSettings[id] = g_HighBanMenuValues[2]
case 3: g_menuSettings[id] = g_HighBanMenuValues[3]
}
}


My edited handling:

if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN)
{
switch(g_menuOption[id])
{
case 0: tempTime = g_HighBanMenuValues[0]
case 1: tempTime = g_HighBanMenuValues[1]
case 2: tempTime = g_HighBanMenuValues[2]
case 3: tempTime = g_HighBanMenuValues[3]
}
if temptime = 1Hour then g_menuSettings[id] = 60
if temptime = 1Hour then g_menuSettings[id] = 4320
if temptime = 1Hour then g_menuSettings[id] = 10080
if temptime = 1Hour then g_menuSettings[id] = 0
}


Is that a solution ?
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