Health
#1

Question :
Okay, so how can I add health instead of just setting it to a player??

Problem :
I don't know how to do it
Reply
#2

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Question :
Okay, so how can I add health instead of just setting it to a player??

Problem :
I don't know how to do it
pawn Код:
new Float:Health;
SetPlayerHealth(playerid,GetPlayerHealth(playerid,Float:Health)+100);
Reply
#3

Quote:
Originally Posted by ikarus❶❸❸❼
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Question :
Okay, so how can I add health instead of just setting it to a player??

Problem :
I don't know how to do it
pawn Код:
SetPlayerHealth(GetPlayerHealth(playerid)100);
thanks :P I have been really confused with this simple thing
Err... warning 202: number of arguments does not match definition
Reply
#4

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by ikarus❶❸❸❼
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Question :
Okay, so how can I add health instead of just setting it to a player??

Problem :
I don't know how to do it
pawn Код:
SetPlayerHealth(GetPlayerHealth(playerid)100);
thanks :P I have been really confused with this simple thing
Err... warning 202: number of arguments does not match definition
Look at my previous post, I edited it
Reply
#5

pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 10);
That will add him 10 health.
Reply
#6

Quote:
Originally Posted by ikarus❶❸❸❼
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by ikarus❶❸❸❼
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Question :
Okay, so how can I add health instead of just setting it to a player??

Problem :
I don't know how to do it
pawn Код:
SetPlayerHealth(GetPlayerHealth(playerid)100);
thanks :P I have been really confused with this simple thing
Err... warning 202: number of arguments does not match definition
Look at my previous post, I edited it
Quote:
Originally Posted by Zamaroht
pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 10);
That will add him 10 health.
Okay, works now, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)