Raised This Month: $32 Target: $400
 8% 

Connect music wont play


Post New Thread Reply   
 
Thread Tools Display Modes
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 05:46   Re: Connect music wont play
Reply With Quote #11

Quote:
Originally Posted by DJEarthQuake View Post
Code:
client_cmd(id, "mp3 play ^"sound/biohazard/%s^"", cursong)
Code:
Bad command: "mp3 play "sound/biohazard/connect1.mp3"
huh?

Last edited by HowToRuski; 08-30-2020 at 05:47.
HowToRuski is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-30-2020 , 05:53   Re: Connect music wont play
Reply With Quote #12

Code:
Bad command: "mp3 play sound/biohazard/song1.mp3
Non-Steam = No Suport.
Your non-steam client has a "Guard" that means server can't execute client_cmd() command on him.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 05:55   Re: Connect music wont play
Reply With Quote #13

Quote:
Originally Posted by Shadows Adi View Post
Code:
Bad command: "mp3 play sound/biohazard/song1.mp3
Non-Steam = No Suport.
Your non-steam client has a "Guard" that means server can't execute client_cmd() command on him.
How come?
I connected to a server with my non-steam client, it downloads, and it plays mp3 files in sounds/kick/blabla.mp3 ?
HowToRuski is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-30-2020 , 05:56   Re: Connect music wont play
Reply With Quote #14

Quote:
Originally Posted by HowToRuski View Post
Code:
Bad command: "mp3 play "sound/biohazard/connect1.mp3"
huh?
Quotes within quotes are required.
__________________

Last edited by DJEarthQuake; 08-30-2020 at 05:58.
DJEarthQuake is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 05:57   Re: Connect music wont play
Reply With Quote #15

Quote:
Originally Posted by DJEarthQuake View Post
Try it.
What do you mean? If you mean your code i posted results above

Last edited by HowToRuski; 08-30-2020 at 05:57.
HowToRuski is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-30-2020 , 06:05   Re: Connect music wont play
Reply With Quote #16

From working function.
Code:
public playonconnect(id){     new szNow_Playing[MAX_PLAYERS];     szNow_Playing = ( "%s",szJuke_box[random(sizeof(szJuke_box))] )     replace(szNow_Playing, charsmax(szNow_Playing), "../", "")     if(g_bOnline[id])     {         client_print(id, print_chat,"We are playing ^n%s",szNow_Playing)         client_cmd(id,"mp3 play ^"%s^"",szNow_Playing);     } }
__________________
DJEarthQuake is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 07:08   Re: Connect music wont play
Reply With Quote #17

Quote:
Originally Posted by DJEarthQuake View Post
From working function.
Code:
public playonconnect(id){     new szNow_Playing[MAX_PLAYERS];     szNow_Playing = ( "%s",szJuke_box[random(sizeof(szJuke_box))] )     replace(szNow_Playing, charsmax(szNow_Playing), "../", "")     if(g_bOnline[id])     {         client_print(id, print_chat,"We are playing ^n%s",szNow_Playing)         client_cmd(id,"mp3 play ^"%s^"",szNow_Playing);     } }
And from what plugin this is if i may ask? Because if i put this in my code i need to fully rewrite it

Last edited by HowToRuski; 08-30-2020 at 07:09.
HowToRuski is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-30-2020 , 10:04   Re: Connect music wont play
Reply With Quote #18

Quote:
Originally Posted by HowToRuski View Post
And from what plugin this is if i may ask? Because if i put this in my code i need to fully rewrite it
That function is from one of my plugins that plays Valve mp3's. If double quotes does not resolve your issue then discard the information.
__________________
DJEarthQuake is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 10:34   Re: Connect music wont play
Reply With Quote #19

Quote:
Originally Posted by DJEarthQuake View Post
That function is from one of my plugins that plays Valve mp3's. If double quotes does not resolve your issue then discard the information.
It just shows the same Bad command "mp3 play "sounds.mp3""

Last edited by HowToRuski; 08-30-2020 at 10:34.
HowToRuski is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode