errors[+REP]
#1

There is the lines:
pawn Код:
if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,298.2446, 201.8958, 889.5491))
    {
        MoveObject(PrisonGate1,296.96875000,207.98828125,892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,295.3155, 211.4049, 889.5491))
    {
        MoveObject(PrisonGate1, 296.96875000, 207.98828125, 892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,295.3083, 234.5880, 889.5491))
    {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,299.8243, 227.9879, 889.5491))
    {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 323.8190, 230.1355, 889.5491))
    {
        MoveObject(PrisonGate5,318.01525879,231.82656860,891.18591309, 2.500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 335.1102, 220.0642, 889.5491))
    {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 336.2267, 223.9015, 889.5491))
    {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 320.2110,216.9101,889.5491))//From ENTER PRISON to PRISON
    {
        SetPlayerPos(playerid, 371.36816,183.34472,889.29827);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 371.36816,183.34472,889.29827))//From PRISON to ENTER PRISON
    {
        SetPlayerPos(playerid, 320.2110,216.9101,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 410.4096,164.0016,895.9006))//Like down ^^
    {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 410.2949,165.4837,895.9006))//Upper gates who can open only a police?
    {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 369.2244,170.9349,889.5491))//Gates who opens only for police to ISO 1,2
    {
        MoveObject(PrisonGate8,368.68524170,169.67308044,888.54907227, 2.500000);
        SetTimer("InPrisonGate", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 363.3798,155.9887,889.5491))//ISO 2
    {
        SetPlayerPos(playerid,304.12487793,158.95205688,886.36791992);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 362.9739,153.6197,889.5491))//ISO 1
    {
        SetPlayerPos(playerid,303.79785156,144.47070312,886.36791992);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 405.8181,181.2119,895.9006))//Open/Close cells dialog
    {
        ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, " Please Choose what you want to do...","Open the Cells\nClose the Cells","Ok","Cancel");
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 2.0, 416.7481,159.0282,895.9077))//Gym enter?
    {
        SetPlayerPos(playerid,409.62695312,96.86425781,896.03515625);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 409.62695312,96.86425781,896.03515625))//GYM exit?
    {
        SetPlayerPos(playerid,416.7481,159.0282,895.9077);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 5.0, 303.79785156,144.47070312,886.36791992))//From ISO 1 to PRISON
    {
        SetPlayerPos(playerid,362.9739,153.6197,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 5.0, 304.12487793,158.95205688,886.36791992))//From ISO 2 to PRISON
    {
        SetPlayerPos(playerid,363.3798,155.9887,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    return 1;
}
More lines
pawn Код:
if(dialogid == 1335)
    {
        if(!response) return SendClientMessage(playerid, COLOR_LIGHTRED, " You Canceled!");
        switch(listitem)//wich listitem is chosen
                {
                    case 0://the first item in the list: Open the Gates.
                    {
                        ShowPlayerDialog(playerid, 1336, DIALOG_STYLE_LIST, "Please choose which cell you want to open","Gate No.1\nGate No.2\nGate No.3\nGate No.4\nGate No.5\nGate No.6\nGate No.7\nGate No.8\nGate No.9\nGate No.10\nGate No.11\n*All the Gates!","Ok","Back");
                    }
                    case 1://the second item in the list: Close the Gates.
                    {
                        ShowPlayerDialog(playerid, 1338, DIALOG_STYLE_LIST, "Please choose which cell you want to close","Gate No.1\nGate No.2\nGate No.3\nGate No.4\nGate No.5\nGate No.6\nGate No.7\nGate No.8\nGate No.9\nGate No.10\nGate No.11\n*All the Gates!","Ok","Back");
                    }
                }
    }
    if(dialogid == 1336)
Errors:
pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48733) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48738) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48743) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48749) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48755) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48760) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48765) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48770) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48775) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48780) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48785) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48790) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48795) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48800) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48805) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48809) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48814) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48819) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48824) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(48829) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52001) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52003) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52004) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52006) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52010) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\Server\gamemodes\M-RP.pwn(52016) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.
Please help!
in every else if line there is a error and in the Return 1
Reply
#2

You have to add the ShowPlayerDialog under the SetTimer function.
pawn Код:
if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,298.2446, 201.8958, 889.5491))
    {
        MoveObject(PrisonGate1,296.96875000,207.98828125,892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,295.3155, 211.4049, 889.5491))
    {
        MoveObject(PrisonGate1, 296.96875000, 207.98828125, 892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,295.3083, 234.5880, 889.5491))
    {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5,299.8243, 227.9879, 889.5491))
    {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 323.8190, 230.1355, 889.5491))
    {
        MoveObject(PrisonGate5,318.01525879,231.82656860,891.18591309, 2.500000);
        SetTimer("PrisonGate", 4500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 335.1102, 220.0642, 889.5491))
    {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 336.2267, 223.9015, 889.5491))
    {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 320.2110,216.9101,889.5491))//From ENTER PRISON to PRISON
    {
        SetPlayerPos(playerid, 371.36816,183.34472,889.29827);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 371.36816,183.34472,889.29827))//From PRISON to ENTER PRISON
    {
        SetPlayerPos(playerid, 320.2110,216.9101,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 410.4096,164.0016,895.9006))//Like down ^^
    {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 410.2949,165.4837,895.9006))//Upper gates who can open only a police?
    {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.5, 369.2244,170.9349,889.5491))//Gates who opens only for police to ISO 1,2
    {
        MoveObject(PrisonGate8,368.68524170,169.67308044,888.54907227, 2.500000);
        SetTimer("InPrisonGate", 3000, false);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 363.3798,155.9887,889.5491))//ISO 2
    {
        SetPlayerPos(playerid,304.12487793,158.95205688,886.36791992);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 362.9739,153.6197,889.5491))//ISO 1
    {
        SetPlayerPos(playerid,303.79785156,144.47070312,886.36791992);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 405.8181,181.2119,895.9006))//Open/Close cells dialog
    {
        ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, " Please Choose what you want to do...","Open the Cells\nClose the Cells","Ok","Cancel");
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 2.0, 416.7481,159.0282,895.9077))//Gym enter?
    {
        SetPlayerPos(playerid,409.62695312,96.86425781,896.03515625);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 1.0, 409.62695312,96.86425781,896.03515625))//GYM exit?
    {
        SetPlayerPos(playerid,416.7481,159.0282,895.9077);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 5.0, 303.79785156,144.47070312,886.36791992))//From ISO 1 to PRISON
    {
        SetPlayerPos(playerid,362.9739,153.6197,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    else if(PRESSED(KEY_WALK) && IsPlayerInRangeOfPoint(playerid, 5.0, 304.12487793,158.95205688,886.36791992))//From ISO 2 to PRISON
    {
        SetPlayerPos(playerid,363.3798,155.9887,889.5491);
        SetPlayerInterior(playerid, 1);
    }
    return 1;
}
And then use the case's to decide what you wish to happen.

pawn Код:
if(dialogid == 1335)
    {
        if(!response) return SendClientMessage(playerid, COLOR_LIGHTRED, " You Canceled!");
        switch(listitem)//wich listitem is chosen
                {
                    case 0://the first item in the list: Open the Gates.
                    {
                        // What you wish to happen.
                    }
                    case 1://the second item in the list: Close the Gates.
                    {
                        // What you wish to happen.
                    }
                }
    }
    if(dialogid == 1336)
Reply
#3

But what i don't undertstand is why in my filter script it's work without problems!
How to slove the problem i don't understand
Reply
#4

Please help me!
Reply
#5

Pleaseee
Reply
#6

I won't stop .help pleaseee
Reply
#7

Bump
Reply
#8

Quote:

You may only bump your thread after 48 hours has passed since the last reply.

Did you define PRESSED?
Reply
#9

Try this.
pawn Код:
if(PRESSED(KEY_WALK))
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5,298.2446, 201.8958, 889.5491))
        {
        MoveObject(PrisonGate1,296.96875000,207.98828125,892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,295.3155, 211.4049, 889.5491))
        {
        MoveObject(PrisonGate1, 296.96875000, 207.98828125, 892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,295.3083, 234.5880, 889.5491))
        {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,299.8243, 227.9879, 889.5491))
        {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 323.8190, 230.1355, 889.5491))
        {
        MoveObject(PrisonGate5,318.01525879,231.82656860,891.18591309, 2.500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 335.1102, 220.0642, 889.5491))
        {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 336.2267, 223.9015, 889.5491))
        {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 320.2110,216.9101,889.5491))//From ENTER PRISON to PRISON
        {
        SetPlayerPos(playerid, 371.36816,183.34472,889.29827);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 371.36816,183.34472,889.29827))//From PRISON to ENTER PRISON
        {
        SetPlayerPos(playerid, 320.2110,216.9101,889.5491);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 410.4096,164.0016,895.9006))//Like down ^^
        {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 410.2949,165.4837,895.9006))//Upper gates who can open only a police?
        {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 369.2244,170.9349,889.5491))//Gates who opens only for police to ISO 1,2
        {
        MoveObject(PrisonGate8,368.68524170,169.67308044,888.54907227, 2.500000);
        SetTimer("InPrisonGate", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 363.3798,155.9887,889.5491))//ISO 2
        {
        SetPlayerPos(playerid,304.12487793,158.95205688,886.36791992);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 362.9739,153.6197,889.5491))//ISO 1
        {
        SetPlayerPos(playerid,303.79785156,144.47070312,886.36791992);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 405.8181,181.2119,895.9006))//Open/Close cells dialog
        {
        ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, " Please Choose what you want to do...","Open the Cells\nClose the Cells","Ok","Cancel");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0, 416.7481,159.0282,895.9077))//Gym enter?
        {
        SetPlayerPos(playerid,409.62695312,96.86425781,896.03515625);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 409.62695312,96.86425781,896.03515625))//GYM exit?
        {
        SetPlayerPos(playerid,416.7481,159.0282,895.9077);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0, 303.79785156,144.47070312,886.36791992))//From ISO 1 to PRISON
        {
        SetPlayerPos(playerid,362.9739,153.6197,889.5491);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0, 304.12487793,158.95205688,886.36791992))//From ISO 2 to PRISON
        {
        SetPlayerPos(playerid,363.3798,155.9887,889.5491);
        SetPlayerInterior(playerid, 1);
        }
    }
If it does not work, please post what you have used to define Pressed. Should look something like:
pawn Код:
#define PRESSED %2.2i < 9234 ...
or something weird like that. So yeah, please post that line if the code above does not work.
DO NOT COPY AND PASTE WHAT I HAVE PUT FOR DEFINING PRESSED!!
Reply
#10

ShowPlayerDialog must be under the SetTime function, otherwise it will not work.

Also, try using this

Код HTML:
if(PRESSED(KEY_WALK))
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5,298.2446, 201.8958, 889.5491))
        {
        MoveObject(PrisonGate1,296.96875000,207.98828125,892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,295.3155, 211.4049, 889.5491))
        {
        MoveObject(PrisonGate1, 296.96875000, 207.98828125, 892.72052002, 2.2500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,295.3083, 234.5880, 889.5491))
        {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5,299.8243, 227.9879, 889.5491))
        {
        MoveObject(PrisonGate2, 299.06845093,231.52783203,888.54907227, 2.2500000);
        MoveObject(PrisonGate3, 299.00900269,228.50942993,888.54907227, 2.2500000);
        SetTimer("PrisonGate4Opens", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 323.8190, 230.1355, 889.5491))
        {
        MoveObject(PrisonGate5,318.01525879,231.82656860,891.18591309, 2.500000);
        SetTimer("PrisonGate", 4500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 335.1102, 220.0642, 889.5491))
        {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 336.2267, 223.9015, 889.5491))
        {
        MoveObject(PrisonGate6,335.65136719,222.08398438,892.64837646, 2.500000);
        SetTimer("PrisonGateForVisitors", 3500, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 320.2110,216.9101,889.5491))//From ENTER PRISON to PRISON
        {
        SetPlayerPos(playerid, 371.36816,183.34472,889.29827);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 371.36816,183.34472,889.29827))//From PRISON to ENTER PRISON
        {
        SetPlayerPos(playerid, 320.2110,216.9101,889.5491);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 410.4096,164.0016,895.9006))//Like down ^^
        {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 410.2949,165.4837,895.9006))//Upper gates who can open only a police?
        {
        SetObjectRot(PrisonGate7,0.00000000,0.00000000,109.99514771);
        SetTimer("RotateObjectback", 4000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 369.2244,170.9349,889.5491))//Gates who opens only for police to ISO 1,2
        {
        MoveObject(PrisonGate8,368.68524170,169.67308044,888.54907227, 2.500000);
        SetTimer("InPrisonGate", 3000, false);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 363.3798,155.9887,889.5491))//ISO 2
        {
        SetPlayerPos(playerid,304.12487793,158.95205688,886.36791992);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 362.9739,153.6197,889.5491))//ISO 1
        {
        SetPlayerPos(playerid,303.79785156,144.47070312,886.36791992);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 405.8181,181.2119,895.9006))//Open/Close cells dialog
        {
        ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, " Please Choose what you want to do...","Open the Cells\nClose the Cells","Ok","Cancel");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0, 416.7481,159.0282,895.9077))//Gym enter?
        {
        SetPlayerPos(playerid,409.62695312,96.86425781,896.03515625);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.0, 409.62695312,96.86425781,896.03515625))//GYM exit?
        {
        SetPlayerPos(playerid,416.7481,159.0282,895.9077);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0, 303.79785156,144.47070312,886.36791992))//From ISO 1 to PRISON
        {
        SetPlayerPos(playerid,362.9739,153.6197,889.5491);
        SetPlayerInterior(playerid, 1);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0, 304.12487793,158.95205688,886.36791992))//From ISO 2 to PRISON
        {
        SetPlayerPos(playerid,363.3798,155.9887,889.5491);
        SetPlayerInterior(playerid, 1);
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)