Dialog Spoof :( PleaSE HELp ME to FIX this bug!! :(
#1

Код:
if(dialogid == DIALOG_AUTOREFUND)
	{
	    if(response)
	    {
	        if(listitem == 0)
	        {
	            ShowPlayerDialogEx(playerid,REFUND1, DIALOG_STYLE_MSGBOX, "Philippines-Roleplay Refund package 1", "Free GD\nFree 1M Money\nFree 5 Token\n\n Cars:\nFree Turismo\nFree NRG-500\nFree Bullet", "OK", "");
	            return 0;
	        }
	        if(listitem == 1)
	        {
	            ShowPlayerDialogEx(playerid,REFUND2, DIALOG_STYLE_MSGBOX, "Philippines-Roleplay Refund package 2", "Free GD\nFree 1M Money\nFree 5 Token\n\n Cars:\nFree Sultan\nFree PCJ-600\nFree Helicopter (Maverick)", "OK", "");
				return 0;
			}
			if(listitem == 2)
			{
			    ShowPlayerDialogEx(playerid,REFUND3, DIALOG_STYLE_MSGBOX, "Philippines-Rolepay Refund package 3", "Free GD\nFree 500K Money\nFree 3 Token\n\n Cars:\nFree Kart\nFree Monster A\n Free Infernus\nFCR-500", "OK", "");
			    return 0;
			}
	    }
	    return SendClientMessage(playerid, COLOR_RED, "You have cancel auto-refund, You dont have refund anymore!");
	}
Код:
if(GetPVarInt(playerid, "dialog") != dialogid ) { // Confirm the dialogid matches what we have in the PVar
		format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
  		ABroadCast(COLOR_YELLOW, string, 2);

		format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
		AddAutomatedFlag(playerid, string);

		format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
		Log("logs/crash.log", string);

		return 1;
	}
Sersiouly, I dont know wheres the problem caming from -_- :3

I promise i will give an +rep who can help me
Reply
#2

You never really described the problem. Care to inform us?
Reply
#3

Quote:
Originally Posted by nmader
Посмотреть сообщение
You never really described the problem. Care to inform us?
Its on the title mate ^^

When it Shows the DIALOG_AUTOREFUND and i click some of Listitems it will return 1 and says "maybe dialog spoof"
Reply
#4

Quote:
Originally Posted by Trynda
Посмотреть сообщение
Its on the title mate ^^

When it Shows the DIALOG_AUTOREFUND and i click some of Listitems it will return 1 and says "maybe dialog spoof"
"Dialog Spoof PleaSE HELp ME to FIX this bug!! "
That is your title, it does not specify the details of your problem. When is the if statement performed?
Reply
#5

SickAttack, nobody told you to help him if you suspicion him of ban evading. The moderators will go over that.

Your dialog script is.. Messy and wrong in so many ways.
Why do you return 0 every listitem?

pawn Код:
if(dialogid == DIALOG_AUTOREFUND)
    {
        if(!response) return SendClientMessage(playerid, COLOR_RED, "You have cancel auto-refund, You dont have refund anymore!");
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialogEx(playerid,REFUND1, DIALOG_STYLE_MSGBOX, "Philippines-Roleplay Refund package 1", "Free GD\nFree 1M Money\nFree 5 Token\n\n Cars:\nFree Turismo\nFree NRG-500\nFree Bullet", "OK", "");
            }
            if(listitem == 1)
            {
                ShowPlayerDialogEx(playerid,REFUND2, DIALOG_STYLE_MSGBOX, "Philippines-Roleplay Refund package 2", "Free GD\nFree 1M Money\nFree 5 Token\n\n Cars:\nFree Sultan\nFree PCJ-600\nFree Helicopter (Maverick)", "OK", "");
            }
            if(listitem == 2)
            {
                ShowPlayerDialogEx(playerid,REFUND3, DIALOG_STYLE_MSGBOX, "Philippines-Rolepay Refund package 3", "Free GD\nFree 500K Money\nFree 3 Token\n\n Cars:\nFree Kart\nFree Monster A\n Free Infernus\nFCR-500", "OK", "");
            }
        }
        return 1;
    }
There.
Make sure that your OnDialogResponse Callback returns 0, not 1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)