Problem with timer -
ilay65 - 20.07.2014
I have a timer problem, the problem is that it just does not happen what you type timer, like the timer does not exist.
*Timer marked in red does not work.
The Code:
Код:
Move_timer = SetTimer("Move", 1, 1);
SetTimerEx("Destroy", 15*1000, false, "dd", playerid);
SetTimerEx("Bomb", 10*1000, false, "dd", playerid);
SetTimerEx("Time", 300*1000, false, "dd", playerid);
The Code about timer:
Код:
forward Destroy(playerid);
public Destroy(playerid)
{
KillTimer(Move_timer);
DestroyVehicle(TheBomber[playerid]);
return 1;
}
Thanks for helpers
Re: Problem with timer -
Jefff - 21.07.2014
Should be "d"
Re: Problem with timer -
ilay65 - 21.07.2014
Quote:
Originally Posted by Jefff
Should be "d"
|
Where?
Re: Problem with timer -
WildWave - 21.07.2014
SetTimerEx("Destroy", 15*1000, false, "d", playerid);
Re: Problem with timer -
ilay65 - 21.07.2014
Quote:
Originally Posted by WildWave
SetTimerEx("Destroy", 15*1000, false, "d", playerid);
|
Still
not working
Re: Problem with timer -
ilay65 - 21.07.2014
Up!!
Re: Problem with timer -
Scottas - 21.07.2014
Why do you need a timer that repeats every milisecond? I am talking about
Код:
Move_timer = SetTimer("Move", 1, 1);
Can you explain what are you trying to do?
Re: Problem with timer -
ilay65 - 21.07.2014
Quote:
Originally Posted by Scottas
Why do you need a timer that repeats every milisecond? I am talking about
Код:
Move_timer = SetTimer("Move", 1, 1);
Can you explain what are you trying to do?
|
Код:
forward Move(playerid);
public Move(playerid)
{
Y += 0.05;
SetVehiclePos(TheBomber[playerid], X, Y, Z-30);
SetVehiclePos(TheBomber[playerid], X, Y, Z+30);
return 1;
}
(The Vehicle is
Hydra(520))
Re: Problem with timer -
ilay65 - 21.07.2014
Up!! Is very import to me !
Re: Problem with timer -
ATomas - 21.07.2014
pawn Код:
print("Timer Destroy is starting...");
SetTimerEx("Destroy", 15*1000, false, "d", playerid);
print("Timer Destroy started");
pawn Код:
forward Destroy(playerid);
public Destroy(playerid)
{
print("public Destroy is starting...");
KillTimer(Move_timer);
DestroyVehicle(TheBomber[playerid]);
print("public Destroy done");
return 1;
}
Use this and post your server_log.txt
I think the server to be very busy with Move_timer = SetTimer ("Move", 1, 1);
Try give more rest to server:
pawn Код:
Move_timer = SetTimer ("Move", 100, 1);
Re: Problem with timer -
ilay65 - 21.07.2014
Quote:
Originally Posted by ATomas
pawn Код:
print("Timer Destroy is starting..."); SetTimerEx("Destroy", 15*1000, false, "d", playerid); print("Timer Destroy started");
pawn Код:
forward Destroy(playerid); public Destroy(playerid) { print("public Destroy is starting..."); KillTimer(Move_timer); DestroyVehicle(TheBomber[playerid]); print("public Destroy done"); return 1; }
Use this and post your server_log.txt
I think the server to be very busy with Move_timer = SetTimer ("Move", 1, 1);
Try give more rest to server:
pawn Код:
Move_timer = SetTimer ("Move", 100, 1);
|
No working...
What is this damn problem?!
Respuesta: Re: Problem with timer -
Siralos - 21.07.2014
Quote:
Originally Posted by ilay65
No working...
What is this damn problem?!
|
Why don't you do what he told you? Set the log updates and then paste the log here.
Re: Respuesta: Re: Problem with timer -
ilay65 - 21.07.2014
Quote:
Originally Posted by Siralos
Why don't you do what he told you? Set the log updates and then paste the log here.
|
I did not understand what he said about the Log
Respuesta: Re: Respuesta: Re: Problem with timer -
Siralos - 21.07.2014
Quote:
Originally Posted by ilay65
I did not understand what he said about the Log
|
Do prints like this: print("public Destroy is starting...");
They will print lines of text in server.log, so you can see exactly what is happening