Question about timer
#1

What this mean

pawn Код:
24 * 60 * 1000, true);
Reply
#2

24 x 60 x 1000 = on
Reply
#3

The "*" in 'Pawno' is a shortcut for using multiplication.
Reply
#4

So... hm.... 24 x 60 = 1440

1440 x 1000 = 1440000

is that milliseconds or
Reply
#5

Probably, since you're multiplying by 1,000. If you want us to be definitely sure, you should paste the variable in as well.
Reply
#6

The symbol * is an arithmetic operator. Just like +, -, / and % witch is used in Excel, Programing, Math, etc.

+ Add 3+4
- Difference 3-4
* Product 3*4
/ Ratio 20/7
% Module 20%7
Reply
#7

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
What this mean

pawn Код:
24 * 60 * 1000, true);
Assuming that is a timer, it means that the timer is set to repeat every (since timers are in milliseconds)


-> .. 60 seconds (60 * 1000)
-> 24 * 60 seconds -> 24 minutes

It will repeat every 24 minutes.

If you are asking about the operator '*', you need to step back a bit, probably take a break.
Reply
#8

So if i want 24 seconds instead, how i do
Reply
#9

24*1000 or 24000
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)