03.04.2010, 12:56
But the function called must be public...
since i want the player to be on the moving object, i did this
But
pwn(271) : error 017: undefined symbol "playerid"
pwn(275) : error 017: undefined symbol "playerid"
since i want the player to be on the moving object, i did this
pawn Код:
public OnObjectMoved(objectid)
{
if(IsPlayerInRangeOfPoint(playerid,10,994.28308105469, 1051.5045166016, 50.0))
{
MoveObject(obj,971.3954,2968.8677,110.6146, 75.00);
}
if(IsPlayerInRangeOfPoint(playerid,10,971.3954,2968.8677,110.6146))
{
MoveObject(obj,-3046.0269,3009.7258,110.6146,75.00);
}
return 1;
}
But
pwn(271) : error 017: undefined symbol "playerid"
pwn(275) : error 017: undefined symbol "playerid"