Raised This Month: $ Target: $400
 0% 

Set_user_health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-06-2010 , 12:48   Re: Set_user_health
Reply With Quote #2

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.

Last edited by RedRobster; 06-06-2010 at 12:50.
RedRobster 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