givehp gethp?
#5

Quote:
Originally Posted by FaLLenGirL
View Post
"dude" i'm a girl but that's ok, i try to make your functions work. Let me see.

1. So u get the health with this: GetHealth( i, hp );. Did u defined somewhere that hp ?
PHP Code:
new Float:hp;
GetHealthihp ); 
2. I think if u use it like this may it will work:
PHP Code:
GetHealthplayeridhealth ) return pInfoplayerid ][ pHealth ] = health
3. And this i think it will work too:
PHP Code:
GiveHealthplayeridhealth ) return pInfoplayerid ][ pHealth ] += health
Try it and let me know if it works.
Code:
C:\Users\xc0de\Desktop\tst\gamemodes\zm1.pwn(2800) : warning 213: tag mismatch
C:\Users\xc0de\Desktop\tst\gamemodes\zm1.pwn(2802) : error 036: empty statement
C:\Users\xc0de\Desktop\tst\gamemodes\zm1.pwn(2803) : warning 213: tag mismatch
Code:
			{
	            GetHealth(i,hp);
	            if(hp < 80)
				{;
                 GiveHealth(i,3.5);
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: 4 Guest(s)