Posts: 313
Threads: 39
Joined: Jan 2017
Reputation:
0
how to change automatic song streamer in car
Posts: 578
Threads: 40
Joined: Dec 2016
Well, this section is not a "how-to" question section. In order to get some kind of help the community recommends you to try first on your own and if you can't, upload your code and tell us what's not working. And some nice fellow community members will for sure help you out.
To get a headstart you can try searching for the following callbacks and functions:
OnPlayerStateChange
PlayerPlaySound
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by crukk11
when the song end how to auto the song back
|
https://sampforum.blast.hk/showthread.php?tid=320135
Can't be done wihout timers, and timing what songs are to play and making them go to the next on the end of each song.
Best to just use a streaming radio service.
Posts: 6,242
Threads: 8
Joined: Jun 2008
That's just a timer, set for 3 minutes solid... Not every song is 3 minutes...
Follow Y-Less' advice, as he mentions storing each songs length in an array, and using that to make a timer so each song is counted, rather than being the fixed 3 minute timer.
Posts: 293
Threads: 20
Joined: Jan 2017
Simply... use a direct radio link and relax
( such as tunein and shoutcast, there are alot! )