[Help] GetPlayerHealth
#1

Hey Guys thanks for clicking here. Anyways I'm wanting to make a command [/health] that will let me tell the player what there HP is at.
"Your health is at (PlayerHP) Percent!"

Alright I wrote it like this:

Код:
	if (strcmp("/health", cmdtext, true, 10) == 0)
	{
	new health;
	new string[128];
 	GetPlayerHealth(string, sizeof(health);
 	format(string, sizeof(health),"Your HP is at %d percent!",health);
 	SendClientMessage(RED,string);

	 		return 1;
	}
Although is this incorrect due to wrong Arguments.
Can anyone tell me what I'm doing wrong? Thanks in Advance.
Reply


Messages In This Thread
[Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 01:01
Re: [Help] GetPlayerHealth - by Ibanez - 14.04.2010, 01:20
Re: [Help] GetPlayerHealth - by CuervO - 14.04.2010, 01:57
Re: [Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 02:05
Re: [Help] GetPlayerHealth - by Backwardsman97 - 14.04.2010, 03:12
Re: [Help] GetPlayerHealth - by RichyB - 14.04.2010, 08:11
Re: [Help] GetPlayerHealth - by Thrarod - 14.04.2010, 08:52
Re: [Help] GetPlayerHealth - by Vetle - 14.04.2010, 08:58
Re: [Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 12:08

Forum Jump:


Users browsing this thread: 5 Guest(s)