08.07.2013, 02:18
It appears to be compiling fine without any errors or warnings. Try again with this code which I fixed the loose indentation warnings (only those occurred).
pawn Код:
#include <a_samp>
#include <zcmd>
new Float:x, Float:y, Float:z, Float:ang;
new Obj;
forward timer();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Bomber in floor.");
print("--------------------------------------\n");
return 1;
}
CMD:setbomb(playerid, params[])
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, ang);
Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
SendClientMessage(playerid, -1, "Bombs in 30 sec, run!");
SetTimer("timer", 10000, false);
return 1;
}
public timer()
{
CreateExplosion(x, y, z, 6, 30);
DestroyObject(Obj);
}