DEFINE 3 HOURS
#1

pawn Код:
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4
I think this is now for 1 hour, but can anyone make me 3 hours? I don't understand these letters
Reply
#2

Hello,

I guess this is 3 hours, I don't know what you enter into MoneyBagDelay, but try:
pawn Код:
10800000
#define MoneyBagDelay(%1,%2,%3,%4) (%1*10800000)+(%2*60000)+(%3*1000)+%4
-EDIT-
Looking at the code, %1 is how many hours?
Reply
#3

Quote:
Originally Posted by NRJ53
Посмотреть сообщение
Hello,

I guess this is 3 hours, I don't know what you enter into MoneyBagDelay, but try:
pawn Код:
10800000
#define MoneyBagDelay(%1,%2,%3,%4) (%1*10800000)+(%2*60000)+(%3*1000)+%4
-EDIT-
Looking at the code, %1 is how many hours?
Script says this

PHP код:
//Hours, Minutes, Seconds, Milliseconds
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4 
Are you sure it's right?
Reply
#4

%1 = hour
Reply
#5

Quote:
Originally Posted by Dripac
Посмотреть сообщение
Script says this

pawn Код:
//Hours, Minutes, Seconds, Milliseconds
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4
Are you sure it's right?
You could just try:
pawn Код:
MoneyBagDelay(3, 0, 0, 0)
Reply
#6

Quote:
Originally Posted by NRJ53
Посмотреть сообщение
You could just try:
pawn Код:
MoneyBagDelay(3, 0, 0, 0)
It gives an error

error 017: undefined symbol "MoneyBagDelay"
Reply
#7

Where are you using "MoneyBagDelay" ?
Reply
#8

It's not a function, it returns a time in miliseconds. It's meant to be used like this:

pawn Код:
SetMoneyBagDelay(moneybagid, MoneyBagDelay(3, 0, 0, 0));
Reply
#9

I am very confused now
Reply
#10

Can you provide me a code where you are using "MoneyBagDelay".
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)