Automatic Code - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Automatic Code (
/showthread.php?tid=221296)
Automatic Code -
brunogysin - 05.02.2011
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.
Re: Automatic Code - [03]Garsino - 05.02.2011
https://sampwiki.blast.hk/wiki/Getdate
Re: Automatic Code -
brunogysin - 05.02.2011
cool but how do I create a function to be activated on a certain day of the month
Re: Automatic Code - [03]Garsino - 05.02.2011
pawn Код:
new Year, Month, Day;
getdate(Year, Month, Day);
if(Day == 5)
{
// Code here
}
Re: Automatic Code -
brunogysin - 05.02.2011
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