Problem with timer
#1

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
Reply
#2

Should be "d"
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Should be "d"
Where?
Reply
#4

SetTimerEx("Destroy", 15*1000, false, "d", playerid);
Reply
#5

Quote:
Originally Posted by WildWave
Посмотреть сообщение
SetTimerEx("Destroy", 15*1000, false, "d", playerid);
Still not working
Reply
#6

Up!!
Reply
#7

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?
Reply
#8

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))
Reply
#9

Up!! Is very import to me !
Reply
#10

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);
Reply
#11

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?!
Reply
#12

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.
Reply
#13

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
Reply
#14

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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)