SetPlayerHealth(playerid,GetPlayerHealth(playerid)+5); SetPlayerHealth(issuerid,GetPlayerHealth(playerid)-5);
C:\Program Files\Samp serveriai\NAUJAUSIAS SAMP SERVERIS\gamemodes\freeroam.pwn(2103) : warning 202: number of arguments does not match definition C:\Program Files\Samp serveriai\NAUJAUSIAS SAMP SERVERIS\gamemodes\freeroam.pwn(2104) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
new Float:hp;
SetPlayerHealth(playerid,GetPlayerHealth(playerid, hp) + 5);
SetPlayerHealth(issuerid,GetPlayerHealth(playerid, hp) - 5);
pawn Код:
|
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health + 5);
GetPlayerHealth(issuerid, Health);
SetPlayerHealth(issuerid, Health + 5);
stock HP(playerid)
{
new Float:Health; //Creates our float so we can store the health in it
GetPlayerHealth(playerid, Health); //Get's their health storing it in our float
return floatround(Health); //Rounds off the float to make it a regular number then returns that
}
SetPlayerHealth(playerid, HP(playerid)+5);