28.07.2012, 15:41
Oh Right
Can't seem to fix it
PS: will it work?
pawn Код:
public OnObjectMoved(objectid)
{
for(new i;i<MAX_PLAYERS;i++) // Loop through players
{
if(objectid == gRocketObj[i]) // If this object is one of those player objects
{
new targetid,
Float:x,
Float:y,
Float:z;
GetObjectPos(gRocketObj[i], x, y, z);
if(IsPlayerInRangeOfPoint(targetid,3.0, x, y, z)); // Get the position of the object
{
CreateExplosion(x, y, z, 11, 2.50); // Create an explosion at this position
DestroyObject(gRocketObj[i]); // Destroy the object
}
}
}
}
Код:
C:\Users\Warkadang\Desktop\Scripting\Scripting\filterscripts\Test.pwn(54) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
PS: will it work?