Quote:
Originally Posted by leonardo1434
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_SECONDARY_ATTACK) { if(Equipes[playerid] == 2) { new Float:X, Float:Y, Float:Z,vida,vitima; GetPlayerPos(vitima,X,Y,Z); if(IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z)) { GetPlayerHealth(vitima,vida); SetPlayerHealth(vitima,vida -10); } } } return 1; }
|
eu acho que ta errado ai em...
porque a vida nao esta definida como Float: