OnDialogResponse works for 3.0e? -
[HS]Syko - 10.08.2012
Hey samp community!
Everything I do OnDialogResponse doesnt work for me!
If (response) SendClientMessage ("example") doesnt work.
I tested on rules and weapon Dialog and nothing happens.
If someone knows how how to make it work, please post it here.
Thank you!
Re: OnDialogResponse works for 3.0e? -
CaRa - 10.08.2012
Can you show us the code ?
Re: OnDialogResponse works for 3.0e? -
[HS]Syko - 10.08.2012
Код:
// FS for rules
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#pragma tabsize 0
//Msg Defines
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
//Dialog Defines
#define blue {000080}
#define red {FF0000}
#define yellow {D9FF00}
#define KickBox 1
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Stylez Rules Dialog 0.3c Colored");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, KickBox, DIALOG_STYLE_MSGBOX, "{000080}Server Rules", "{FF0000}Rule 1: No Hacking\n\n{FF0000}Rule 2: No Imature Behavioure\n\n{FF0000}Rule 3: No Racism\n\n{FF0000}Rule 4: Respect all players\n\n{FF0000}Rule 5: Do not be abusive to Admins or KICK/BAN\n\n{FF0000}Rule 6: Have Fun!\n\n{D9FF00}Decline our rules you will be KICKED!", "Accept", "Decline");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == KickBox)
{
if(response)
{
SendClientMessage(playerid,COLOR_YELLOW, "You Accepted our rules Have fun!");
}
else
{
SendClientMessage(playerid,COLOR_RED, "You Declined and have been kicked Goodbye!");
Kick(playerid);
}
return 1;
}
return 0;
}
//------------------------------------------------------------------------------
Things in Red Color don't work for me.
Re: OnDialogResponse works for 3.0e? -
[HS]Syko - 11.08.2012
Can someone tell me why is not working? I need OnDialogResponse to work for me...
Re: OnDialogResponse works for 3.0e? -
JaKe Elite - 11.08.2012
Your gamemode OnDialogResponse might be return to 1
make your gamemode OnDialogResponse to return 0;
Re: OnDialogResponse works for 3.0e? -
IceMeteor - 11.08.2012
Maybe that dialog ID has been used on the Gamemode
Re: OnDialogResponse works for 3.0e? -
[HS]Syko - 11.08.2012
Changed return to 0 still not working

And not using dialog id in gamemode...
Re: OnDialogResponse works for 3.0e? -
[KHK]Khalid - 11.08.2012
Tested your script on a 0.3e R2 server and it worked just fine. Well, are you sure you don't have OnDialogResponse returning 0 in any other scripts? Not only your gamemode you should check your filterscripts too.