Automatic Code
#1

Hello
How do I do to activate a function on a particular day of the month
Ex:
On day 05 of the 07 months (05/07) Enable a Role to my server.
Reply
#2

https://sampwiki.blast.hk/wiki/Getdate
Reply
#3

cool but how do I create a function to be activated on a certain day of the month
Reply
#4

pawn Код:
new Year, Month, Day;
getdate(Year, Month, Day);
if(Day == 5)
{
    // Code here
}
Reply
#5

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
new Year, Month, Day;
getdate(Year, Month, Day);
if(Day == 5)
{
    // Code here
}
new Year, Month, Day;
getdate(Year, Month, Day);
if(Day == 5 && Month == 7)
{
// Code here
}
Thanks

when the 5 day pass and goes to the sixth day he still boo Unmute this function?
Ex: I give the GMX sv on 6 of 7 months he will still activate after I spend the day
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)