SA-MP Forums Archive
Dialog issues - 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 issues (/showthread.php?tid=388951)



Dialog issues - Jassey - 31.10.2012

The dialog not shown, can anyone help me?
This is the code
Код:
CMD:belineon(playerid, params[]) 
{
	if(PlayerInfo[playerid][pDiamondTokens] >= 1)
	{
		if(IsPlayerInRangeOfPoint(playerid,3,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,3,1633.341064, 2192.745117, 10.820312))
		{
			ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Pilih neon yang kamu suka","Biru\nMerah\nHijau\nPutih\nPink\nKuning\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon","Select","Cancel");
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_WHITE, "Kamu tidak sedang berada di bengkel.");
		}
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_WHITE, "Kamu tidak memiliki Diamond Tokens.");
	}
	return 1;	
}



Re: Dialog issues - RenSoprano - 31.10.2012

Show use the dialog code


Re: Dialog issues - Jarnu - 31.10.2012

pawn Код:
DIALOG_NEON
Show this define.


Re: Dialog issues - JaKe Elite - 31.10.2012

It's something got to do with OnDialogResponse.


Re: Dialog issues - Jarnu - 31.10.2012

He says his dialog is not shown up,.

also, i found something dude.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,3,1633.341064, 2192.745117, 10.820312))
using '3' range is too small try changing above line to following.

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,10,1633.341064, 2192.745117, 10.820312))



Re: Dialog issues - Jassey - 31.10.2012

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
He says his dialog is not shown up,.

also, i found something dude.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,3,1633.341064, 2192.745117, 10.820312))
using '3' range is too small try changing above line to following.

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,10,1633.341064, 2192.745117, 10.820312))
Butif this the issues it will says "Kamu tidak sedang berada di bengkel"


Re: Dialog issues - Jarnu - 31.10.2012

Just can you show your DIALOG ID? .. means define DIALOG_NEON


Re: Dialog issues - Jassey - 31.10.2012

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
Just can you show your DIALOG ID? .. means define DIALOG_NEON
This:
Код:
#define DIALOG_NEON 55463



Re: Dialog issues - Stu1 - 31.10.2012

PHP код:
CMD:belineon(playeridparams[]) 
{
    if(
PlayerInfo[playerid][pDiamondTokens] >= 1)
    {
        if(
IsPlayerInRangeOfPoint(playerid,10,-78.65,-1116.17,1.08) || IsPlayerInRangeOfPoint(playerid,10,1633.3410642192.74511710.820312))
        {
            
ShowPlayerDialog(playeridDIALOG_NEONDIALOG_STYLE_LIST"Pilih neon yang kamu suka","Biru\nMerah\nHijau\nPutih\nPink\nKuning\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon","Select","Cancel");
        }
        else
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"Kamu tidak sedang berada di bengkel.");
        }
    else
    {
        
SendClientMessageEx(playeridCOLOR_WHITE"Kamu tidak memiliki Diamond Tokens.");
    }
    }
    return 
1;    

Give this a try


Re : Dialog issues - lelemaster - 31.10.2012

@Stu1 No, you will have 26 errors with your codes, there is a bracket that should not be there.

@Jassey, take a look at this https://sampwiki.blast.hk/wiki/ShowPlayerDialog

It will tell you that the highest dialog id is 32767. Try lowering yours under this number. I guess your first codes were working fine.