CMD:boom(playerid, params[]) { new Float:x, Float:y, Float:z; x = 38.24; y = -23.23; z = 1.17; CreateExplosion(x, y, z, 7, 13.0); SetTimerEx("BoomTimer", 10000, false, "fff", x,y,z); return 1; } forward BoomTimer(x,y,z); public BoomTimer(x,y,z) { SendClientMessageToAll(-1, "called"); new string[32]; format(string, sizeof(string), "%f %f %f", x,y,z); SendClientMessageToAll( -1, string); CreateExplosion(x, y, z, 7, 13.0); return 1; }
KillTimer(BoomTimer);
new Float:BoomX, Float:BoomY, Float:BoomZ; //Somewhere on top
CMD:boom(playerid, params[])
{
BoomX = 38.24;
BoomY = -23.23;
BoomZ = 1.17;
CreateExplosion(BoomX, BoomY, BoomZ, 7, 13.0);
SetTimer("BoomTimer", 10000, false);
return 1;
}
forward BoomTimer();
public BoomTimer()
{
SendClientMessageToAll(-1, "called");
new string[32];
format(string, sizeof(string), "%f %f %f", BoomX,BoomY,BoomZ);
SendClientMessageToAll( -1, string);
CreateExplosion(BoomX, BoomY, BoomZ, 7, 13.0);
return 1;
}
Your BoomTimer functions arguments need to have a Float tag.
i.e: Float, Float:y, Float:z. Also, I DON'T recommend doing what David proposed. |