[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Support Forum • View topic - Pal Wait For Time - But Wait for Deck to stop playing? - spacial.com
Skip to Content
It is currently October 3rd, 2023, 8:37 am

All times are UTC - 6 hours [ DST ]




 [ 3 posts ] 
Author Message
PostPosted: September 17th, 2018, 10:53 am 
Offline
Senior User
Senior User

Joined: September 12th, 2012, 9:42 pm
Posts: 94
Hi. I am looking for the command like pal.wait for time
But the action is I want to do is: wait for active deck to stop playing

Thanks!


Top
 Profile  
 
PostPosted: September 17th, 2018, 2:50 pm 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4744
Location: Los Angeles - A Little West Of Nashville
You can do this by using a loop and keep checking the status of the Active Deck (or Deck A or Deck B).

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Top
 Profile  
 
PostPosted: September 18th, 2018, 5:31 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
The ActivePlayer function will never return a stopped player.
You can copy the ActivePlayer reference into a variable and keep watching that variable until the player goes into psIdle Status or something like that. (sorry, can't remember if that is the correct status name, playing is psPlaying and paused is psPaused, but this could as well be psStopped or something like that)

If you loop and watch the ActivePlayer function instead you will get DeckA while that is playing and DeckB while that is playing, but never will you get the Idle player.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

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


Top
 Profile  
 
Display posts from previous:  Sort by  
 [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 15 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:  
cron
Powered by phpBB® Forum Software © phpBB Group