Timer problem
#1

I just cannot find out why this timer isnt working... thanks for helping... I know old style...
__________________________________________________ _____________________________
forward AirStrikeTimer(playerid);


OnPlayerCommandText
{
if (strcmp("/AirStrike", cmdtext, true, 10) == 0)
{
if(KillStreak[playerid] == 0) //(Change) to 6
{
SetTimer("AirStike", 40000, 0);
SendClientMessage(playerid, red, "Incoming an AirStrike to your position in 40 seconds!");
return 1;
}

}



public AirStrikeTimer(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
CreateExplosion(Float:x, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+5, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+10, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+15, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+20, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+25, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y+30, Float:z, 2, 10.0);
CreateExplosion(Float:x+5, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x+10, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x+15, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x+20, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x+25, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x+30, Float:y, Float:z, 2, 10.0);
CreateExplosion(Float:x, Float:y, Float:z+5, 2, 10.0);
return 1;
}


I havent made timers for a LONG time and now I cannot find a reason so thank you if you help me! :D
Reply


Messages In This Thread
Timer problem - by GNGification - 20.03.2011, 14:03
Re: Timer problem - by ricardo178 - 20.03.2011, 14:04
Re: Timer problem - by Zh3r0 - 20.03.2011, 14:07
Re: Timer problem - by GNGification - 20.03.2011, 14:08
Re: Timer problem - by ricardo178 - 20.03.2011, 14:13
Re: Timer problem - by GNGification - 20.03.2011, 14:14
Re: Timer problem - by Kwarde - 20.03.2011, 14:15
Re: Timer problem - by ricardo178 - 20.03.2011, 14:16
Re: Timer problem - by Biesmen - 20.03.2011, 14:21

Forum Jump:


Users browsing this thread: 4 Guest(s)