Raised This Month: $ Target: $400
 0% 

Set_user_health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-06-2010 , 13:49   Re: Set_user_health
Reply With Quote #3

Quote:
Originally Posted by RedRobster View Post
PHP Code:
public hp(id){
    new 
userHp get_user_health(id)
    if(
userHp >= get_pcvar_num(gmax))
    {
        
set_user_health(idget_pcvar_num(gmax))
    }else{
    
set_user_health(iduserHp get_pcvar_num(gadd))
    
set_task(get_pcvar_float(gtime), "hp")
    }

You never defined (id) in hp(id). I don't believe.
What you posted is the exact same.
__________________
Hi.
Kreation 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 05:21.


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