FilterScript Problem
#1

I had this problem again, but with other filterscript.
The previous time I change from the Admin System this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
       return 1;
}
to this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
}
And my "Carmenu" filterscript works fine!
Today I load a V.I.P System and this happened again.
On the V.I.P System on DialogResponse has:
pawn Код:
public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
{
    if ( dialogid == VSPA )
    {
        if ( response )
        {
            if ( listitem == 0 )
            {
                for ( new i = 0; i < 5; i++ )
                {
                    if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
                    {
                        RemovePlayerAttachedObject( playerid, i );
                    }
                }
                SetPlayerAttachedObject( playerid, 1, 19086, 8, -0.049768, -0.014062, -0.108385, 87.458297, 263.478149, 184.123764, 0.622413, 1.041609, 1.012785 );
                SendClientMessage( playerid, COLOR_VIP, "You have holded a {00FF00}dick!" );
                SendClientMessage( playerid, COLOR_VIP, "To stop holding please type {00FF00}/stophold!" );
            }
            if ( listitem == 1 )
            {
                for ( new i = 0; i < 5; i++ )
                {
                    if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
                    {
                        RemovePlayerAttachedObject( playerid, i );
                    }
                }
                SetPlayerAttachedObject( playerid, 0, 1114, 1, 0.138007, 0.002714, -0.157366, 350.942352, 16.794704, 32.683506, 0.791829, 0.471535, 1.032759 );
                SetPlayerAttachedObject( playerid, 1, 1114, 1, 0.138007, 0.002714, 0.064523, 342.729064, 354.099456, 32.369094, 0.791829, 0.471535, 1.032759 );
                SendClientMessage( playerid, COLOR_VIP, "You have holded a {00FF00}iron!" );
                SendClientMessage( playerid, COLOR_VIP, "To stop holding please type {00FF00}/stophold!" );
            }
            if ( listitem == 2 )
            {
                for ( new i = 0; i < 5; i++ )
                {
                    if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
                    {
                        RemovePlayerAttachedObject( playerid, i );
                    }
                }
                SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
                SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
                SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
                SendClientMessage( playerid, COLOR_VIP, "You have holded as {00FF00}Alien!" );
                SendClientMessage( playerid, COLOR_VIP, "To stop holding please type {00FF00}/stophold!" );
            }
            if ( listitem == 3 )
            {
                for ( new i = 0; i < 5; i++ )
                {
                    if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
                    {
                        RemovePlayerAttachedObject( playerid, i );
                    }
                }
                SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
                SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
                SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
                SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
                SetPlayerAttachedObject( playerid, 4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000 );
                SendClientMessage( playerid, COLOR_VIP, "You have holded as {00FF00}Icread!" );
                SendClientMessage( playerid, COLOR_VIP, "To stop holding please type {00FF00}/stophold!" );
            }
            if ( listitem == 4 )
            {
                SetPlayerSpecialAction( playerid, 2 ); //Jetpack!
                SendClientMessage( playerid, COLOR_VIP,"Jetpack Spawmed!" );
            }
        }
    }
    return 1;
}
What to do to fix it, so it can appear the carmenu/cartune filterscrits?
Reply
#2

return 0 to both.
Reply
#3

The filterscript "Carmenu" has already in the end return 0
but when i type in-game /carmenu>Bikes>nothing appears.
Thanks for help me, but something to try
Reply
#4

atm i feel weird. thats called "Deja Vu".. anyways:

remove
Код:
return 1;
and/or
Код:
return 0;
from ALL your filterscripts' OnDialogResponse() callbacks,
and make sure that your gamemodes' ODR() DOES contain a return 1; and you're done! to prevent other replies "blabla that will fail/wont work), here a small overview of my filterscripts using the ODR() callback each, they are proven to work together:
Fireworks, AudioDJ, Race, ObjectEditor, MatrixTDAnnounce. (all used by countless players, they never had issues using different dialogs, ever.)
if you request it, then i will record a little video tomorrow, just to demonstrate that it works...
may i try to translate some wise words? well, here it goes..
Код:
"a chain is always strong as its weakest part"
this means: "ONE return; in a FS-ODR() end fucks up your server".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)