Dialog problem
#1

Hi, I have problem with ShowPlayerDialog ...
Код:
CMD:zastitar(playerid, params[])
{
	#pragma unused params
	if(PlayerInfo[playerid][pJob] == 6)
	{
	    ShowPlayerDialog(playerid, 40000, DIALOG_STYLE_LIST, "Lista podrucja","Aerodrom\nBanka\nBurg\nBolnica\nGlen park\nOpstina\nKolodvor", "Uredu", "Izlaz");
	}
	else
	{
	    SendClientMessage(playerid,WHITE,"[{FF0000}Balkan Country{FFFFFF}]{AFAFAF} Niste zaposleni kao zastitar!");
	}
	return 1;
}
When I call ShowPlayerDialog here there not response and not show dialog... other dialog was show, but this not :/
I don't have any idea where is problem, help?!

sry for bad engl
Reply
#2

Max dialogid is 32767
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Show the OnDialogResponse
why? he said the dialog is not showing up, OnDialogResponse gets called when the dialog is shown and player selects anything from it.
pawn Код:
CMD:zastitar(playerid, params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][pJob] == 6)
    {
        ShowPlayerDialog(playerid, 995, DIALOG_STYLE_LIST, "Lista podrucja","Aerodrom\nBanka\nBurg\nBolnica\nGlen park\nOpstina\nKolodvor", "Uredu", "Izlaz");
    }
    else
    {
        SendClientMessage(playerid,WHITE,"[{FF0000}Balkan Country{FFFFFF}]{AFAFAF} Niste zaposleni kao zastitar!");
    }
    return 1;
}
Don't go too far with dialog id numbers.
EDIT:
Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Max dialogid is 32767
now you're talking.
Reply
#4

Fixed ...

Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)