04.04.2010, 11:42
pawn Код:
//under OnPlayerCommandText
if(!strcmp("/activate",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid,1, 1006.2309,1027.5194,48.1328))
{
SetPlayerPos(playerid,994.28308105469, 1051.5045166016, 60.0);
PlayerPlaySound(playerid, 1020, 0.0, 0.0, 0.0);
MoveObject(obj,994.28308105469, 1051.5045166016, 50.0, 8.00);
}
return 1;
}
return 0;
}
//under OnObjectMoved
public OnObjectMoved(objectid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 994.28308105469, 1051.5045166016, 50.0)) //this gives me undefined symbol "playerid"
MoveObject(obj,978.1339,2299.8567,49.3317,75);
return 1;
}