Filtersctipts Problem. Please help
#1

Hello people, Im having a problem when I use some Filterscripts. I tried downloading some radios. They seem to load properly, I enter "/radio" command and the dialog pops up but when I click one the dialog dissapears. This also is happening on another Filterscripts, I load them correctly from the server.cfg. Please am I missing some plugin or something?.

Console FS Log:

Quote:

Filterscripts
---------------
Loading filterscript 'rracees.amx'...
Loading filterscript 'radio.amx'...
Loaded 2 filterscripts.

Thanks.
Reply
#2

Show us these filterscripts as I may know, there are link in the filterscript that are supposed to turn on music, but the links are dead.
Reply
#3

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Show us these filterscripts as I may know, there are link in the filterscript that are supposed to turn on music, but the links are dead.
Here is the Radio FS:
Quote:

// Radio Filterscript made by Matt
#include <a_samp>

#pragma tabsize 0

//COLORS
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define COLOR_RED 0xFF000000
#define COLOR_LBLUE 0x33CCFF19
#define RADIO 66

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Radio Filterscript by Matt");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/radio", true))
{
new string[3000];
strcat(string,"{FF0000}Stop Radio\n");
strcat(string,"{0000FF}181.FM - POWER 181\n");
strcat(string,"{006400}181.FM - Chilled\n");
strcat(string,"{FF8C00}181.FM - Party\n");
strcat(string,"{008000}181.FM - Highway 181\n");
strcat(string,"{4B00B0}181.FM - Kickin' Country\n");
strcat(string,"{00FF00}COUNTRY 108\n");
strcat(string,"{FFC0CB}DEFJAY.COM - 100% R&B\n");
strcat(string,"{A52A2A}Antena1 SP 94,7 FM\n");
strcat(string,"{808080}idobi Radio\n");
strcat(string,"{FF0000}America Country Radio\n");
strcat(string,"{0000FF}Absolutely Smooth Jazz - SKY.FM\n");
strcat(string,"{006400}SmoothJazz.com Global Radio\n");
strcat(string,"{FF8C00}CnR Radio\n");
strcat(string,"{008000}))) POLSKASTACJA .PL )))\n");
strcat(string,"{4B00B0}NOISEfm.pl - Niezalezne Radio Rock\n");
strcat(string,"{00FF00}RadioTeenTal Indian and Bollywood\n");
strcat(string,"{FFC0CB}DUBSTEP.FM\n");
strcat(string,"{A52A2A}PARTY VIBE RADIO\n");
strcat(string,"{808080}RADIO ORO MARBELLA EN DIRECTO\n");
strcat(string,"{FF0000}Radio Nueva Vida\n");
ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST,"{ADD8E6}mmtech {90EE90}Radio",string,"Select","Cancel");
return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == RADIO)
{
if(listitem == 0)
{
StopAudioStreamForPlayer(playerid);
GameTextForPlayer(playerid, "Radio Stopped.",2500,1);
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896");
GameTextForPlayer(playerid, "Playing 181.FM - POWER 181...",2500,1);
}
if(listitem == 2)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
}
if(listitem == 3)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=508962");
GameTextForPlayer(playerid, "Playing 181.FM - Party...",2500,1);
}
if(listitem == 4)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=297243");
GameTextForPlayer(playerid, "Playing 181.FM - Highway 181...",2500,1);
}
if(listitem == 5)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
GameTextForPlayer(playerid, "Playing 181.FM - Kickin' Country...",2500,1);
}
if(listitem == 6)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=248370");
GameTextForPlayer(playerid, "Playing COUNTRY 108...",2500,1);
}
if(listitem == 7)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=520036");
GameTextForPlayer(playerid, "Playing DEFJAY.COM - 100% R&B...",2500,1);
}
if(listitem ==
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=203280");
GameTextForPlayer(playerid, "Playing Antena1 SP 94,7 FM...",2500,1);
}
if(listitem == 9)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897");
GameTextForPlayer(playerid, "Playing idobi Radio...",2500,1);
}
if(listitem == 10)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=210158");
GameTextForPlayer(playerid, "Playing America Country Radio...",2500,1);
}
if(listitem == 11)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=86433");
GameTextForPlayer(playerid, "Playing Absolutely Smooth Jazz - SKY.FM...",2500,1);
}
if(listitem == 12)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=467000");
GameTextForPlayer(playerid, "Playing SmoothJazz.com Global Radio...",2500,1);
}
if(listitem == 13)
{
PlayAudioStreamForPlayer(playerid, "http://cnr-radio.com/listen.m3u");
GameTextForPlayer(playerid, "Playing CnR Radio...",2500,1);
}
if(listitem == 14)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=721890");
GameTextForPlayer(playerid, "Playing ))) POLSKASTACJA .PL )))...",2500,1);
}
if(listitem == 15)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=31903");
GameTextForPlayer(playerid, "Playing NOISEfm.pl - Niezalezne Radio Rock...",2500,1);
}
if(listitem == 16)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35899");
GameTextForPlayer(playerid, "Playing RadioTeenTal Indian and Bollywood...",2500,1);
}
if(listitem == 17)
{
PlayAudioStreamForPlayer(playerid, "http://www.dubstep.fm/listen.pls");
GameTextForPlayer(playerid, "Playing DUBSTEP.FM...",2500,1);
}
if(listitem == 1
{
PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://www.partyvibe.com:8006/listen.pls&t=.pls");
GameTextForPlayer(playerid, "Playing PARTY VIBE RADIO...",2500,1);
}
if(listitem == 19)
{
PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://92.48.107.35:8004/listen.pls&t=.pls");
GameTextForPlayer(playerid, "Playing RADIO ORO MARBELLA EN DIRECTO...",2500,1);
}
if(listitem == 20)
{
PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://sc1.christiannetcast.com:9138/listen.pls&t=.pls");
GameTextForPlayer(playerid, "Playing Radio Nueva Vida...",2500,1);
}
}
}

and heres another mod that happened the same:

http://www.solidfiles.com/d/16a5da4ae2/
Reply
#4

you said there was 2 radio. show us the second one

or just try these
pwn
radio
amx
radio
Reply
#5

Quote:
Originally Posted by Ryan Sweden
Посмотреть сообщение
you said there was 2 radio. show us the second one

or just try these
pwn
radio
amx
radio
It does not work either, when I click one radio the dialog closes. I've found that is a GM problem, because running Grand Larceny the FS works great but with this GM I cant use the FS.

The GM im using is http://www.solidfiles.com/d/02e3b11bc9/ .
Can someone tell me how to put the FS directly on the GM?
Or give me the GM with the FS included?

Thanks
Reply
#6

Seems it could be related to the gamemode or filterscript issue. from what i see.

To place it in the gamemode, just copy the code into there and make sure it works properly.
Reply
#7

pawn Код:
#define FILTERSCRIPT
#include <a_samp>

// rest..

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    // inside...
    return 0; // <- it should return false in that callback if it's filterscript. Otherwise true.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)