Urgent Question
#1

How do I do that if passing x x days from now something happens? Timer? DOF2? What do I do? I've tried everything I can not?
Please help me in this important and urgent!
Reply
#2

Why do you rate your scripting help thread?
Reply
#3

pawn Код:
#define DAY_LENGTH_SECONDS 86400
SomeEventTime = gettime() + (DAY_LENGTH_SECONDS * NUMBEROFDAYS);

// Then run some kind of update timer and check it like this

// Event has occurred
if(gettime() > SomeEventTime)
{


}
Reply
#4

Quote:
Originally Posted by Pottus
Посмотреть сообщение
pawn Код:
#define DAY_LENGTH_SECONDS 86400
SomeEventTime = gettime() + (DAY_LENGTH_SECONDS * NUMBEROFDAYS);

// Then run some kind of update timer and check it like this

// Event has occurred
if(gettime() > SomeEventTime)
{


}
Where to put it? If the server will fall?
Reply
#5

He just gave an example, not a copy-paste script, look closer at what he said and try to think it.
86400 represents how much seconds a day have.
gettime() it returns the current time + ((how much seconds a day have) * (how many days you want.))
Watch here for the gettime info:
https://sampwiki.blast.hk/wiki/Gettime
Reply
#6

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
He just gave an example, not a copy-paste script, look closer at what he said and try to think it.
86400 represents how much seconds a day have.
gettime() it returns the current time + ((how much seconds a day have) * (how many days you want.))
Watch here for the gettime info:
https://sampwiki.blast.hk/wiki/Gettime
Can you get me the code if a player makes the command "BuySMan" So after 5 days it will write to him, "You're out special man, to buy back type - /BuySMan"?
I would be most grateful.
Reply
#7

Upp!! Is Very Imported Relly!
Reply
#8

Dude, we gave you guidance of what to do at least give it a shot and if your code isn't working post and we will look at it were not going to write your script for you that isn't what this section is for. Scripting help is for people who know how to script but have a problem with their script your looking for the tutorial section.
Reply
#9

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Dude, we gave you guidance of what to do at least give it a shot and if your code isn't working post and we will look at it were not going to write your script for you that isn't what this section is for. Scripting help is for people who know how to script but have a problem with their script your looking for the tutorial section.
I asked, but they are not? What's hard for you to just get me a code? Will It Affect You? Maximum spend a minute on this subject.
Reply
#10

Quote:
Originally Posted by ilay65
Посмотреть сообщение
I asked, but they are not? What's hard for you to just get me a code? Will It Affect You? Maximum spend a minute on this subject.
If it only takes a minute, go make it yourself then.
If you're too lazy to just use that code and then tweak it to make it work like you, then we're also lazy to help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)