DEFINE 3 HOURS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DEFINE 3 HOURS (
/showthread.php?tid=299643)
DEFINE 3 HOURS -
Dripac - 26.11.2011
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
Re: DEFINE 3 HOURS -
NRJ53 - 26.11.2011
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?
Re: DEFINE 3 HOURS -
Dripac - 26.11.2011
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?
Re: DEFINE 3 HOURS -
MP2 - 26.11.2011
%1 = hour
Re: DEFINE 3 HOURS -
NRJ53 - 26.11.2011
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)
Re: DEFINE 3 HOURS -
Dripac - 26.11.2011
Quote:
Originally Posted by NRJ53
You could just try:
pawn Код:
MoneyBagDelay(3, 0, 0, 0)
|
It gives an error
error 017: undefined symbol "MoneyBagDelay"
Re: DEFINE 3 HOURS -
NRJ53 - 26.11.2011
Where are you using "MoneyBagDelay" ?
Re: DEFINE 3 HOURS -
MP2 - 26.11.2011
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));
Re: DEFINE 3 HOURS -
Dripac - 26.11.2011
I am very confused now
Re: DEFINE 3 HOURS -
NRJ53 - 26.11.2011
Can you provide me a code where you are using "MoneyBagDelay".
Thanks