03.01.2013, 21:03
What's the problem with this
Код:
if(IsPlayerInRangeOfObject(playerid, 987, 5.0)) //ERROR LINE { SetPlayerHealth(playerid, 10); return 1; }
Код:
warning 203: symbol is never used: "distance"
Код:
IsPlayerInRangeOfObject(playerid, objectid, Float:distance=5.0) { new Float:x, Float:y, Float:z; GetObjectPos(objectid, x, y, z); return (GetPlayerDistanceFromPoint(playerid, x, y, z) < 5.0); }