Dialog problem - 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)
+--- Thread: Dialog problem (
/showthread.php?tid=378161)
Dialog problem -
Marusa - 16.09.2012
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
Re: Dialog problem -
ViniBorn - 16.09.2012
Max dialogid is 32767
Re: Dialog problem -
AtItsMax - 16.09.2012
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.
Re: Dialog problem -
Marusa - 16.09.2012
Fixed ...
Thanks