31.03.2015, 03:21
In this code there is no error, perhaps you are placing evil in the callback, place as well:
What is the other error ?. In the code there is only one, show the other, perhaps there is the solution.
PHP Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
/*if(dialogid == other_dialog)
{
}*/
if(dialogid == REGISTRATION_SKIPTUT)
{
if(response)
{
PlayerInfo[playerid][pTut] = 1;
SetPlayerPos(playerid, 2212.61, -1730.57, -80.0);
SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
TogglePlayerControllable(playerid,0);
for(new t = 0; t < 11; t++)
{
TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
}
TutorialProgress[playerid] = 1;
SetTimerEx("TutorialProgression", 14500, 0, "d", playerid);
}
else
{
for(new t = 0; t < 54; t++)
{
TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
}
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid, 852.477905, -1439.473876, 15.043654);
SetPlayerFacingAngle(playerid, 171.05);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid, MainMenuTxtdraw[0]);
InsideTut[playerid] = 0;
DeletePVar(playerid, "MedicBill");
SetPlayerColor(playerid,TEAM_HIT_COLOR);
PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pSex] = 1;
PlayerInfo[playerid][pAge] = 25;
PlayerInfo[playerid][pSkin] = 299;
SetPlayerSkin(playerid, 299);
ClearChatbox(playerid);
new string[128];
format(string, sizeof(string), "Welcome to Irish Verse Roleplay PH, %s.", GetPlayerNameEx(playerid));
SendClientMessage(playerid, COLOR_NEWS, string);
format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(playerid));
GameTextForPlayer(playerid, string, 5000, 1);
SendClientMessage(playerid, COLOR_YELLOW, "If you have any further questions, please use /newb. You can also /report if you see any rule-breakers.");
SendClientMessage(playerid, COLOR_GREY, "Use /usecoupon to be a Gold Donator for 7 Days.");
SendClientMessage(playerid, COLOR_REALRED, "If you wish to remove the textdraw. Please Relogin.");
ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Irish Verse Roleplay PH - \ages","Starter Refund","Read", "");
new motdstring[128];
format(motdstring, sizeof(motdstring), "News: %s", GlobalMOTD);
SendClientMessage(playerid, COLOR_WHITE, motdstring);
DeletePVar(playerid, "IsFrozen");
TutorialProgress[playerid] = 0;
}
}
/*if(dialogid == other_dialog)
{
}*/
return true;
}