SA-MP Forums Archive
why is this happening? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: why is this happening? (/showthread.php?tid=257490)



why is this happening? - CrazyBlob - 26.05.2011

this has never happened befour

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == gundialog)
	{
	    if(response)
	    {
			if(listitem == 0)
			{
			    SendClientMessage(playerid,COLOR_RED,"You Picked Pack 1");
			}
			if(listitem == 1)
			{
			    SendClientMessage(playerid,COLOR_RED,"You Picked Pack 2");
			}
			if(listitem == 2)
			{
			    SendClientMessage(playerid,COLOR_RED,"You Picked Pack 3");
			}
			return 1;
		}
	}
	return 1;
}
if i click anything on my menu nothing happens why?


Re: why is this happening? - WooTFTW - 26.05.2011

Show us the code, where you have ShowPlayerDialog, i think that there's an problem with Dialog id's


Re: why is this happening? - CrazyBlob - 26.05.2011

Quote:
Originally Posted by Skorch
Посмотреть сообщение
Show us the code, where you have ShowPlayerDialog, i think that there's an problem with Dialog id's
haha i just noticed the id was set to : 1


thanks bro stupid me i knew nothing was wrong with my coding


Re: why is this happening? - Steven82 - 26.05.2011

If you knew, then why did you post this topic..

P.S. There was something wrong with your coding, a dialog id. Might want to re-word that last sentence.