31.03.2012, 22:35
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 0.85, ClayInfo[clayx],ClayInfo[clayy],ClayInfo[clayz]))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x,y,z);
GameTextForPlayer(playerid, "Boooooom!",2000, 1);
ColocaramClay = 0;
DestroyObject(ClayObj);
CreateExplosion(x,y,z,12,10);
ClayInfo[clayx] = 0;
ClayInfo[clayy] = 0;
ClayInfo[clayz] = 0;
return 1;
}
return 1;
}
pawn Код:
(5373) : error 021: symbol already defined: "OnPlayerUpdate"
pawn Код:
{