input line to long (after substitutions)
#1

So,I have this command for the radio...I don't know yet how to make it with the R button!)

Код:
CMD:radio(playerid,params[]) 
{
return ShowPlayerDialog(playerdialog,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio Menu","Radio 1 \n Radio 2 \n Radio 3 \n ...  Radio 25","Play","Cancel"); 
}
There are 25 radios!

And the error: input line to long (after substitutions) (PS: Doesn't work with declaring a string and format him or strcat() or nothing...just doesn't work,I tried)
Reply
#2

It's difficult to help you.

Send me your TeamViewer Data by PM or post the whole command you use...
Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
It's difficult to help you.

Send me your TeamViewer Data by PM or post the whole command you use...
Man,this fuckin' shit works,because that 25 radios I took them from a server...and there works!-_- When I press R it show's me that Dialog with that 25 radios,it works,but I don't know how to make it! (Sorry for my bad english)

Код:
CMD:radio (playerid,params[]) 
{
	return ShowPlayerDialog(playerid,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio",""red"Turn off the radio!\nPro FM Romania\nRadio Bandit Romania\nRadio Taraf Romania\nRadio Hot Romania\nRadio Gangsta Dance\nRadio Gangsta Manele\nRadio Tequilla Hip-Hop\nRadio Greu De Difuzat Hip-Hop\n.977 Hitz\n.977 Mix\n.977 Alternative\nRadio BBC One UK\nSKY.FM - Urban Jamz\nSKY.FM - Top Hits\ndi.fm - breakz\ndi.fm - drum and bass\ndi.fm - house\nDubstep.fm\nRadio Hit Romania\nRadio ClubMix Romania\nKiss FM Romania [Audio Plugin]\nRadio Zu Romania [Audio Plugin]\nRadio Popular\nRadio Hotsyle Colinde\nRadio Taraf Colinde","Play","Cancel");
}
Reply
#4

So you don't know how to start the audio stream?

Look here: https://sampforum.blast.hk/showthread.php?tid=301986
Reply
#5

You could do this

Код:
new const radios[] =" Line 1 \
add a slash at the end of each line to tell the compiler \
that the content is in the next line \
thats it!";
Reply
#6

Quote:
Originally Posted by Yashas
Посмотреть сообщение
You could do this

Код:
new const radios[] =" Line 1 \
add a slash at the end of each line to tell the compiler \
that the content is in the next line \
thats it!";
I'm getting too black for this shit!=))))) Doesn't work...I must cut the last 4 radios minimum to compile the gamemode and don't get that error!)

Код:
CMD:radio (playerid,params[]) 
{
	new radios[900] = "Turn off the radio!\n \
	Pro FM Romania\n \
	Radio Bandit Romania\n \
	Radio Taraf Romania\n \
	Radio Hot Romania\n \
	Radio Gangsta Dance\n \
	Radio Gangsta Manele\n \
	Radio Tequilla Hip-Hop\n \
	Radio Greu De Difuzat Hip-Hop\n \
	.977 Hitz\n \
	.977 Mix\n \
	.977 Alternative\n \
	Radio BBC One UK\n \
	SKY.FM - Urban Jamz\n \
	SKY.FM - Top Hits\n \
	di.fm - breakz\n \
	di.fm - drum and bass\n \
	di.fm - house\n \
	Dubstep.fm\n \
	Radio Hit Romania\n \
	Radio ClubMix Romania\n \
	Kiss FM Romania (Audio Plugin)";
	/* Radio Zu Romania (Audio Plugin)\n \
	Radio Popular\n \
	Radio Hotsyle Colinde\n \
	Radio Taraf Colinde" */
	ShowPlayerDialog(playerid,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio Menu",radios,"Play","Cancel");
	return 1;
}
Reply
#7

Код:
CMD:radio(playerid,params[])
{
	new radios[768];
	strcat(radios, "Turn off the radio!\nPro FM Romania\nRadio Bandit Romania");
	strcat(radios, "\nRadio Taraf Romania\nRadio Hot Romania\nRadio Gangsta Dance");
	strcat(radios, "\nRadio Gangsta Manele\nRadio Tequilla Hip-Hop\nRadio Greu De Difuzat Hip-Hop");
	strcat(radios, "\n.977 Hitz\n.977 Mix\n.977 Alternative");
	strcat(radios, "\nRadio BBC One UK\nSKY.FM - Urban Jamz\nSKY.FM - Top Hits");
	strcat(radios, "\ndi.fm - breakz\ndi.fm - drum and bass\ndi.fm - house");
	strcat(radios, "\nDubstep.fm\nRadio Hit Romania\nRadio ClubMix Romania");
	strcat(radios, "\nKiss FM Romania (Audio Plugin)\nRadio Zu Romania (Audio Plugin)\nRadio Popular");
	strcat(radios, "\nRadio Hotsyle Colinde\nRadio Taraf Colinde");
	ShowPlayerDialog(playerid,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio Menu",radios,"Play","Cancel");
	return 1;
}
This compiled fine for me and worked, 3 radios on each strcat, are you sure you are using the strcat properly?.
Reply
#8

Quote:
Originally Posted by OGKush
Посмотреть сообщение
I'm getting too black for this shit!=))))) Doesn't work...I must cut the last 4 radios minimum to compile the gamemode and don't get that error!)

Код:
CMD:radio (playerid,params[]) 
{
	new radios[900] = "Turn off the radio!\n \
	Pro FM Romania\n \
	Radio Bandit Romania\n \
	Radio Taraf Romania\n \
	Radio Hot Romania\n \
	Radio Gangsta Dance\n \
	Radio Gangsta Manele\n \
	Radio Tequilla Hip-Hop\n \
	Radio Greu De Difuzat Hip-Hop\n \
	.977 Hitz\n \
	.977 Mix\n \
	.977 Alternative\n \
	Radio BBC One UK\n \
	SKY.FM - Urban Jamz\n \
	SKY.FM - Top Hits\n \
	di.fm - breakz\n \
	di.fm - drum and bass\n \
	di.fm - house\n \
	Dubstep.fm\n \
	Radio Hit Romania\n \
	Radio ClubMix Romania\n \
	Kiss FM Romania (Audio Plugin)";
	/* Radio Zu Romania (Audio Plugin)\n \
	Radio Popular\n \
	Radio Hotsyle Colinde\n \
	Radio Taraf Colinde" */
	ShowPlayerDialog(playerid,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio Menu",radios,"Play","Cancel");
	return 1;
}
Sorry, I never knew compiler substitutes the lines to make a single line.

Try Zeex's Compiler

If I remember it correctly, the line limit is 4095 instead of the usual 511 limit.
Reply
#9

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
Код:
CMD:radio(playerid,params[])
{
	new radios[768];
	strcat(radios, "Turn off the radio!\nPro FM Romania\nRadio Bandit Romania");
	strcat(radios, "\nRadio Taraf Romania\nRadio Hot Romania\nRadio Gangsta Dance");
	strcat(radios, "\nRadio Gangsta Manele\nRadio Tequilla Hip-Hop\nRadio Greu De Difuzat Hip-Hop");
	strcat(radios, "\n.977 Hitz\n.977 Mix\n.977 Alternative");
	strcat(radios, "\nRadio BBC One UK\nSKY.FM - Urban Jamz\nSKY.FM - Top Hits");
	strcat(radios, "\ndi.fm - breakz\ndi.fm - drum and bass\ndi.fm - house");
	strcat(radios, "\nDubstep.fm\nRadio Hit Romania\nRadio ClubMix Romania");
	strcat(radios, "\nKiss FM Romania (Audio Plugin)\nRadio Zu Romania (Audio Plugin)\nRadio Popular");
	strcat(radios, "\nRadio Hotsyle Colinde\nRadio Taraf Colinde");
	ShowPlayerDialog(playerid,RADIO_DIALOG,DIALOG_STYLE_LIST,"Radio Menu",radios,"Play","Cancel");
	return 1;
}
This compiled fine for me and worked, 3 radios on each strcat, are you sure you are using the strcat properly?.
LOOL,works!=))))) I don't know why beacuse I already tried and without result....but now works!)
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)