why is this happening?
#1

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?
Reply
#2

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

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)