Dialog >:( - 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: Dialog >:( (
/showthread.php?tid=164234)
Dialog >:( -
Sir_bomber - 30.07.2010
Hay, I tried to make a /color dialog, the dialog works fine, but when i click one of the options nothing happens....
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, invi);
}
case 1:
{
SetPlayerColor(playerid, blue);
}
case 2:
{
SetPlayerColor(playerid, red);
}
}
}
}
}
return 1;
}
Yes I added the:
pawn Код:
if(!strcmp(cmdtext, "/color", true))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What color you want?", "Invi \nBlue \nRed ", "Set", "Cancel");
}
return 1;
}
Re: Dialog >:( -
ViruZZzZ_ChiLLL - 30.07.2010
Try this :
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1 && response)
{
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, invi);
}
case 1:
{
SetPlayerColor(playerid, blue);
}
case 2:
{
SetPlayerColor(playerid, red);
}
}
}
return 1;
}
If it's still not fixed, it's a dialog conflict.
Check one of your filterscripts for dialogs or same dialog id's.
Re: Dialog >:( -
Sir_bomber - 30.07.2010
Uhm... still not working... and i have no other dialogs!
Re: Dialog >:( -
PotH3Ad - 30.07.2010
Try this
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1 && response)
{
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, invi);
}
case 1:
{
SetPlayerColor(playerid, blue);
}
case 2:
{
SetPlayerColor(playerid, red);
}
}
return 1;
}
return 0;
}
Re: Dialog >:( -
Kar - 30.07.2010
why did you just return 0