Timer issues
#1

i did this code it should send a warning message every 10 seconds and save player position and after 20 seconds there should be an explosion in the save x y z position of player

but i am not gettibg warning message and the explosion happen on my player even if i leave the old position where i get a warning.

this is my code

PHP Code:
// at the to
new Float:Pos[3][MAX_PLAYERS];
// gamemodeint
    
SetTimer("Airstrikemsg"100001); 
PHP Code:
public Airstrikemsg()
{
    
SendClientMessageToAll(-1"clear your position airstike coming!");
    for(new 
i=0;i<MAX_PLAYERS;i++)
    if(
IsPlayerConnected(i))
    {
        
GetPlayerPos(i,Pos[0][i],Pos[1][i],Pos[2][i]);
    }
    
SetTimer("Airstrikestart"200001);
    return 
1;
}
public 
Airstrikestart(playerid)
{
    
CreateExplosion(Pos[0][playerid], Pos[1][playerid], Pos[2][playerid], 71000.0);
    return 
1;

Reply


Messages In This Thread
Timer issues - by SalmaN97 - 12.11.2015, 19:21
Re: Timer issues - by PrO.GameR - 12.11.2015, 19:42
Re: Timer issues - by SalmaN97 - 12.11.2015, 20:00
Re: Timer issues - by RyanMaster - 19.11.2015, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)