24.06.2011, 13:34
(
Последний раз редактировалось Lorenc_; 25.06.2011 в 00:49.
)
Solved
IsPlayerAroundFire(playerid)
{
for(new f; f < 21; f++)
{
new Float:oPosition[3];
GetObjectPos(gServerData[E_FIRE][f], oPosition[0], oPosition[1], oPosition[2]);
return IsPlayerInRangeOfPoint(playerid, 3.0, oPosition[0], oPosition[1], oPosition[2]);
}
}
1. Wtf is "IsPlayerAroundNapalm"?
2. Try this: pawn Код:
|
#define IsPlayerAroundNapalm(%1) IsPlayerAroundFire(%1)
the only thing I see in it is that you are using "IsPlayerAroundNapalm" at OnPlayerUpdate and as stock "IsPlayerAroundFire"..
however I guess this are basicly 2 different functions and has nothing to do with the problem.. I don't see any other mistake though.. what about trying to set the range a little bit higher? (e.g. to 5 -- just to test) |