[HELP] ShowPlayerDialog - Errors.
#5

Well, you return false at the end of the callback and true at the end of the strcmp statement but it may bugs it due to the lenght, it sometimes happens.

Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/elevator", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 2.4079) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, down level dialog.
        { // look
             ShowPlayerDialog(playerid, DIALOG_ELET1, DIALOG_STYLE_LIST, "Elevator","Second Level (shop)\nThird Level","Use Elevator","Elevator"); //sWierd cuz there is nossing missed,  i know right, roy couldnt help me to..
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 12.7379) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, second level dialog.
        {
             ShowPlayerDialog(playerid, DIALOG_ELET2, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Third Level (sniper position)","Use Elevator","Elevator");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 23.2279) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, third level dialog.
        {
             ShowPlayerDialog(playerid, DIALOG_ELET3, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Second Level (shop)","Use Elevator","Leave Elevator");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 2.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, down level dialog.
        {
             ShowPlayerDialog(playerid, DIALOG_ELECT1, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Second Level (shop)\n Third Level (sniper position)","Use Elevator","Elevator");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 12.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, second level dialog.
        {
             ShowPlayerDialog(playerid, DIALOG_ELECT2, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Third Level (sniper position)","Use Elevator","Elevator");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 23.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, third level dialog.
        {
             ShowPlayerDialog(playerid, DIALOG_ELECT3, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Second Level (shop)","Use Elevator","Leave Elevator");
        }
        else SendClientMessage(playerid, COLOR_RED, "You cant use your victims elevator, Or maybe you aren't near an elevator?");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] Command isnt working. - by faff - 18.03.2013, 06:50
Re: [HELP] Command isnt working. - by faff - 18.03.2013, 07:13
Re: [HELP] ShowPlayerDialog - Errors. - by LarzI - 18.03.2013, 07:14
Re: [HELP] ShowPlayerDialog - Errors. - by faff - 18.03.2013, 10:14
Re: [HELP] ShowPlayerDialog - Errors. - by Konstantinos - 18.03.2013, 10:19
Re: [HELP] ShowPlayerDialog - Errors. - by faff - 18.03.2013, 10:25
Re: [HELP] ShowPlayerDialog - Errors. - by Konstantinos - 18.03.2013, 13:23
Re: [HELP] ShowPlayerDialog - Errors. - by faff - 18.03.2013, 13:45
Re: [HELP] ShowPlayerDialog - Errors. - by faff - 19.03.2013, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)