Dialog issues
#1

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;	
}
Reply
#2

Show use the dialog code
Reply
#3

pawn Код:
DIALOG_NEON
Show this define.
Reply
#4

It's something got to do with OnDialogResponse.
Reply
#5

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))
Reply
#6

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

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

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

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

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


Forum Jump:


Users browsing this thread: 5 Guest(s)