Dialog not showing
#1

So basically I made a dialog which comes up after spawn after registeration.It doesn't shows up. Whats the problem?
In functions after the player registers and spawns
Код:
ShowPlayerDialog(playerid, WELCOMEMAT, DIALOG_STYLE_MSGBOX, "Tutorial-OGRP", "Would you like OGRP to guide you?", "Yes", "No");
Код:
#define         WELCOMEMAT               	(9876)
Between other dialogs in OnDialogResponse
Код:
		else if(dialogid == WELCOMEMAT)
		{
			if(response)
			{
		  	SendClientMessage(playerid,0x008000FF, "___PART 1____");
		  	SendClientMessage(playerid,0x008000FF, "Buy a car using your car voucher which is refunded to you.");
		  	CP[playerid] = 1;
		  	SetPlayerCheckpoint(playerid, 1647.2083, -1895.2522 ,13.5527, 3.0);
			}
			else
			{
		  	SendClientMessage(playerid, 0xFF0000FF, "Follow the rules and respect each other. Have a nice stay.");
			}
		}
EDIT: I found that every dialog is not working
Reply
#2

Can you show the full code of OnDialogResponse?
Reply
#3

http://pastebin.com/fMHYGUZF [only some lines of it cant show full its too many and pastebin wont allow to paste it]
Reply
#4

Tutorial fixed but my other dialogs not showing like dealerships when we enter car it should give a buy dialog but its not giving
Reply
#5

hmm, might showing me an example of the command/checkpoint and the dialog response?
Reply
#6

So modified the tutorial a bit and now its this
Код:
	if(CP[playerid] == 1)
	{
	DisablePlayerCheckpoint(playerid);
 	CP[playerid] = 2;
 	}
	if(CP[playerid] == 2)
	{
	DisablePlayerCheckpoint(playerid);
	SetPlayerCheckpoint(playerid, 1479.1576, -1811.2654, 13.5400, 3.0); // disables his checkpoint since he/she reached it
	SendClientMessage(playerid, 0x008000FF, "___PART 2____");
	SendClientMessage(playerid, 0x008000FF, "Go to the City Hall to buy driver's license.");
	CP[playerid] = 3;
  	}

	if(CP[playerid] == 3)
	{
	DisablePlayerCheckpoint(playerid);
	SendClientMessage(playerid, 0x008000FF, "___PART 3____");
	SendClientMessage(playerid, 0x008000FF, "Go to the Bank to Withdraw/Save your money.");
	SetPlayerCheckpoint(playerid, 1457.0206, -1013.1943, 26.8438, 3.0);
	CP[playerid] = 4;
	}
	if(CP[playerid] == 4)
	{
	DisablePlayerCheckpoint(playerid); // disables his checkpoint since he/she reached it
	SendClientMessage(playerid, 0x008000FF, "You have completed the tutorial. Have a nice stay here..");
	}
Now the problem is that no checkpoint is showing.
And for the dealership bug here it is
Код:
			format(string, sizeof(string), "Would you like to purchase this %s\nThis vehicle costs $%s.", GetVehicleName(newcar), number_format(Businesses[iBusiness][bPrice][iSlot]));
		    ShowPlayerDialog(playerid,DIALOG_CDBUY,DIALOG_STYLE_MSGBOX,"Buy Vehicle",string,"Buy","Cancel");
		    TogglePlayerControllable(playerid, false);
		    return 1;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)