givehp gethp?
#2

I really don't know what can this ever work.
Try this maybe it will be okay.

1. Why u use another stocks.. there are already functions to get health or to set health.
2. GetPlayerHealth( playerid, Float:health_amount ), is the fuction to get the health. Example:

PHP Code:
new Float:healthx;
GetPlayerHealthplayeridhealthx );
pInfoplayerid ][ pHealth ] = healthx
3. SetPlayerHealth( playerid, Float:health_amount ), is the function to set the health amount.

YOUR CODE IT WILL WORK IF U USE THIS:
PHP Code:
if( team] == TEAM_HUMAN )
{
    new 
Float:hp;
    
GetPlayerHealthihp );
    if( 
hp 80 )
    {
        
SetPlayerHealthihp 3.5 );
    }

In my opinion your functions are not correct and also why to use another functions
if there exist already fuctions for this and u can use it for sure.
Reply


Messages In This Thread
givehp gethp? - by Crystallize - 12.06.2017, 15:35
Re: givehp gethp? - by FaLLenGirL - 12.06.2017, 16:00
Re: givehp gethp? - by Crystallize - 12.06.2017, 16:01
Re: givehp gethp? - by FaLLenGirL - 12.06.2017, 16:08
Re: givehp gethp? - by Crystallize - 12.06.2017, 16:15
Re: givehp gethp? - by FaLLenGirL - 12.06.2017, 16:17
Re: givehp gethp? - by Crystallize - 12.06.2017, 16:18
Re: givehp gethp? - by Whatname - 12.06.2017, 16:20
Re: givehp gethp? - by FaLLenGirL - 12.06.2017, 16:26
Re: givehp gethp? - by Crystallize - 12.06.2017, 16:28

Forum Jump:


Users browsing this thread: 7 Guest(s)