14.04.2010, 01:01
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:
Although is this incorrect due to wrong Arguments.
Can anyone tell me what I'm doing wrong? Thanks in Advance.
"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;
}
Can anyone tell me what I'm doing wrong? Thanks in Advance.


)
