Raised This Month: $ Target: $400
 0% 

Compile error 017: undefined symbol "fm_set_user_health"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sawled
Member
Join Date: Jun 2011
Old 07-12-2014 , 02:06   Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #1

PHP Code:
public message_health(msg_idmsg_destmsg_entity)
{
    
// Get player's health
    
static health
    health 
get_msg_arg_int(1)
    
    
// Don't bother
    
if (health 256) return;
    
    
// Check if we need to fix it
    
if (health 256 == 0)
        
fm_set_user_health(msg_entitypev(msg_entitypev_health) + 1)
    
    
// HUD can only show as much as 255 hp
    
set_msg_arg_int(1get_msg_argtype(1), 255)

Error line -
PHP Code:
fm_set_user_health(msg_entitypev(msg_entitypev_health) + 1
sawled is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-12-2014 , 02:09   Re: Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #2

you need include
add
PHP Code:
#include <fakemeta_util> 
__________________

Last edited by Eagle07; 07-12-2014 at 02:21.
Eagle07 is offline
sawled
Member
Join Date: Jun 2011
Old 07-12-2014 , 02:35   Re: Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #3

Quote:
Originally Posted by Eagle07 View Post
you need include
add
PHP Code:
#include <fakemeta_util> 
It worked, thank you all
sawled is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-12-2014 , 02:38   Re: Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #4

You should use set_user_health().
__________________
fysiks is offline
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-12-2014 , 02:17   Re: Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #5

Add:
PHP Code:
#define fm_set_user_health(%0,%1) set_pev(%0,pev_health,%1) 
Mario AR. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-12-2014 , 02:22   Re: Compile error 017: undefined symbol "fm_set_user_health"
Reply With Quote #6

There is no reason to use fm_set_user_health when set_user_health works just fine
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 07-12-2014, 02:39
Eagle07
This message has been deleted by YamiKaitou. Reason: pointless posts
Reply



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 21:13.


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