06.11.2014, 06:36
Use this
pawn Код:
CMD:bomb(playerid,params[])
{
if(c4[playerid] != 0)
{
for(new A; A < 11;A++)
{
if(c4x[A][playerid] != 9999 && c4y[A][playerid] != 9999 && c4z[A][playerid] != 9999)
{
CreateExplosion(c4x[A][playerid],c4y[A][playerid],c4z[A][playerid],7,30.0);
DestroyDynamicObject(c4c[A][playerid]);
c4x[A][playerid] = 9999;
c4y[A][playerid] = 9999;
c4z[A][playerid] = 9999;
}
}
c4[playerid] = 0;
}
//} <----------an extra closing bracket that was causing error....
return 1;
}