Raised This Month: $ Target: $400
 0% 

blockmaker healer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shadezz
Senior Member
Join Date: Jul 2009
Location: Denmark
Old 01-01-2011 , 10:09   blockmaker healer
Reply With Quote #1

Hey, i just found out that on my SCM the healer wont heal to more than 100, and if ppl got 125 hp with CashMod for an example, healer will just heal to 100, so ive tried if i can make it heal to the right hp (125)

for that ive tried with this:

PHP Code:
ActionHeal(ident)
{
 new 
Float:gametime get_gametime();
 if ( !( 
gametime >= g_next_heal_time[id] ) ) return PLUGIN_HANDLED;
 
 
 new 
health get_user_health(id);
 if ( 
health playerHealth[id] );
 {
  static 
property[5];
 
  
GetProperty(ent1property);
  
health += str_to_num(property);
  
set_user_health(idmin(playerHealth[id], health));
  
  
GetProperty(ent2property);
  
g_next_heal_time[id] = gametime str_to_float(property);
 }
 
 return 
PLUGIN_HANDLED;

and then i get the errors:
Quote:
/home/groups/amxmodx/tmp3/phpNn3M6Y.sma(146 : error 017: undefined symbol "playerHealth"
/home/groups/amxmodx/tmp3/phpNn3M6Y.sma(146 : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpNn3M6Y.sma(146 : error 001: expected token: ";", but found "]"
/home/groups/amxmodx/tmp3/phpNn3M6Y.sma(146 : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpNn3M6Y.sma(146 : fatal error 107: too many error messages on one line
could some1 help me? :S
__________________
Shadezz 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 02:00.


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