Skip to Content
It is currently July 21st, 2019, 6:24 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: help with script
PostPosted: January 28th, 2019, 5:15 pm 
Offline
New User
New User

Joined: January 28th, 2019, 5:05 pm
Posts: 1
hi everyone, im new in this, i wanna make script to run jingles every 9 minutes, but i hear only first time next hour there is no jingles, pls help
thx in advance

Code:
PAL.Loop := True;
Pal.WaitForTime(T['XX:00:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:09:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:18:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:28:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:38:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:47:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);
Pal.WaitForTime(T['XX:56:00']);
CAT['djingles'].QueueTop(smRandom, EnforceRules);


Top
 Profile  
Reply with quote  
 Post subject: Re: help with script
PostPosted: January 28th, 2019, 7:05 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7863
Location: Aachen (Germany)
Start once at the full hour and then leave it running:
Code:
PAL.Loop := True;
PAL.WaitForTime('+00:09:00');
CAT['djingles'].QueueTop(smRandom, EnforceRules);


But are you sure you have enough Jingles to fit your rules?
Usually people tag jingles like this:
Artist: <Name of Station>
Title: Jingle #1
Album: <Name of Station> Jingles

And that would clearly cause problems with the repeat rules.
You might be better off without enforcing repeat rules for jingles, station IDs and stuff like that.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group