Dialog not showing...
#1

Why the dialog isn't showing ?

Here is the code:
Код:
#define GlavnoTune 33331
#define GlavnoTune1 33348



	if(dialogid == GlavnoTune)
	{
        	if(response)
        	{
            		if(listitem == 0) 
	    		{
                		ShowPlayerDialog(playerid, GlavnoTune, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
            		}
            		if(listitem == 1) 
	    		{
				ShowPlayerDialog(playerid, GlavnoTune1, DIALOG_STYLE_LIST, "Car Tune Menu", "Side Skirts\nNazad do glavno meni", "Apply", "Close");
    	    		}
		}
	}
	
	if(dialogid == GlavnoTune1)
	{
		if(response)
        	{
            		if(listitem == 0) 
			{
				ShowPlayerDialog(playerid, GlavnoTune1, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
    			}
            		if(listitem == 1)
			{
				ShowPlayerDialog(playerid, GlavnoTune, DIALOG_STYLE_LIST, "Car Tuning Menu", "Paint Jobs\nSledna Strana", "Enter", "Close");
            		}
		}
	}


	CMD:tune(playerid, params[]) return cmd_tuniraj(playerid, params);
	CMD:tuniraj(playerid, params[])
	{
		if(IsPlayerInRangeOfPoint(playerid, 5,1017.6590,-917.6034,42.1797))
		{
			new playerstate = GetPlayerState(playerid);
			if(playerstate == PLAYER_STATE_DRIVER)
			{
     			ShowPlayerDialog(playerid, GlavnoTune, DIALOG_STYLE_LIST, "Car Tuning Menu", "Paint Jobs\nSledna Strana", "Enter", "Close");
			}
			else
			{
			   SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_RED, "[ERROR] Ne ste vo garazata za tuniranje.");
		}
		return 1;
	}
Reply
#2

Quoted from the ShowPlayerDialog page on the SAMP Wiki:

Quote:
Max dialogid is 32767. Using negative values will close any open dialog.

Your dialog IDs are too high.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)