Skip to content

Releases: Tiaansu/samp-cron

0.1.0

28 Sep 07:50
Compare
Choose a tag to compare
  • Added custom args support.
new CRON:cron_id = INVALID_CRON_ID;
main()
{
    cron_id = cron_new("* * * * * *", "SecondTimer", "i", 5);
}

forward SecondTimer(num);
public SecondTimer(num)
{
    printf("Hi! I am called by cron id: %i and I also have a custom args: %i!", _:cron_id, num);
}
  • Added a message that let the dev knows that the cron pattern they passed is too short.
    • * * * * * (5) - ❌
    • * * * * * * (6) - ✅

EDIT

  • Fixed a crash when you used gmx while cron jobs is running.

First release

25 Sep 15:01
Compare
Choose a tag to compare
0.0.1

fix a typo on linux archive