03.08.2014, 21:09
This is a weird thing...
Why this dialog won't work?.. If I press any button, nothing happens.
Thanks
Why this dialog won't work?.. If I press any button, nothing happens.
pawn Код:
// DialogResponse
if(dialogid == DIALOG_SCELTATUTORIAL)
{
if(response)
{
TextDrawShowForPlayer(playerid, Area);
TextDrawShowForPlayer(playerid, Area1);
TextDrawShowForPlayer(playerid, Area6);
TextDrawShowForPlayer(playerid, Area7);
TextDrawShowForPlayer(playerid, Area8);
TextDrawShowForPlayer(playerid, Tutorial);
TextDrawShowForPlayer(playerid, Tutorial1);
TextDrawShowForPlayer(playerid, Textdrawtutorial);
InterpolateCameraPos(playerid, -2127.006347, -86.325317, 111.828300, -2005.210327, 102.900993, 27.349117, 5000);
InterpolateCameraLookAt(playerid, -2126.978271, -81.380912, 111.085289, -2001.835205, 106.568000, 27.751344, 5000);
SetPlayerPos(playerid,-2127.006347, -86.325317, 111.828300);
SetTimerEx("Tutorial11", 15000, false, "i", playerid);
TextDrawHideForPlayer(playerid, Area9);
TextDrawHideForPlayer(playerid, Area2);
TextDrawHideForPlayer(playerid, Area3);
TextDrawHideForPlayer(playerid, Area4);
TextDrawHideForPlayer(playerid, Area5);
ClearChatbox(playerid, 99);
}
else
{
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
CanTalk[playerid] = 0;
SendClientMessage(playerid, COLOR_WHITE, "Hai deciso di non fare il tutorial. {00C0FF}Buon divertimento{FFFFFF} dallo staff di {00C0FF}One Roleplay!");
return 1;
}
}
//ShowPlayerDialog
ShowPlayerDialog(playerid, DIALOG_SCELTATUTORIAL, DIALOG_STYLE_MSGBOX, "{00C0FF}Registrazione", "{FFFFFF}Hai completato la registrazione con successo!\nVuoi fare un tutorial per conoscere meglio la cittа\n o preferisci continuare?", "Tutorial", "Continuare");
//On Top
#define DIALOG_SCELTATUTORIAL 32010
Thanks