Raised This Month: $ Target: $400
 0% 

get_gametime mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 05-07-2010 , 18:08   get_gametime mismatch
Reply With Quote #1

PHP Code:
public Health_Regen(id)
{
    switch(
LEVELS[id])
    {
        case 
1:
        {
            
g_healthtime[id] = (get_gametime() + 5.0)
            while(
g_healthtime[id] == get_gametime())
            {
                new 
health get_user_health(id)
                
set_user_health(id, (health +3) )
            }
            
        }
        case 
2:
        {
            
g_healthtime[id] = (get_gametime() + 3.0)
            while( 
g_healthtime[id] == get_gametime() )
            {
                new 
health get_user_health(id)
                
set_user_health(id, (health +5) )
            }
        }
    }    

tag mismatch on the
PHP Code:
g_healthtime[id] = (get_gametime() + 5.0)
g_healthtime[id] = (get_gametime() + 3.0
do I need to define the 3.0 and 5.0 as floats somewhere??
__________________
+|- KARMA Respectively

HLM 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 03:46.


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