0.3e Gate bugg
#1

here a video of the bug.

http://www.youtube.com/watch?v=KJqmG...ature=*********

Any help? Rep ++
Reply
#2

Review your destination rotations.
Reply
#3

This happened in 0.3d also.. Make sure all your plugins/includes are updated and recompile.. Or paste the code for revision
Reply
#4

How exactly can I find that
heres one of my pawns
Код:
	FBIGate1 = CreateDynamicObject(971, 320.40628051758, -1487.9129638672, 26.900407791138, 0.000000, 0.000000, 144.85501098633); //
Reply
#5

Show us /gate
Reply
#6

The whole /gate cmd is here


Код:
CMD:gate(playerid, params[]) // MUST UPDATE GATE ISSUE - Move up and down when being opened in a wrong direction.
{
    new string[128];
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
	{
        GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
        GetDynamicObjectPos(LSPDGate, Positions[1][0], Positions[1][1], Positions[1][2]);
        GetDynamicObjectPos(LSPDGate2, Positions[4][0], Positions[4][1], Positions[4][2]);
        GetDynamicObjectPos(SFPDGate1, Positions[6][0], Positions[6][1], Positions[6][2]);
        GetDynamicObjectPos(SFPDGate2, Positions[7][0], Positions[7][1], Positions[7][2]);
        GetDynamicObjectPos(SFPDGate3, Positions[8][0], Positions[8][1], Positions[8][2]);
        GetDynamicObjectPos(FBIGate1, Positions[2][0], Positions[2][1], Positions[2][2]);
        GetDynamicObjectPos(FBIGate2, Positions[3][0], Positions[3][1], Positions[3][2]);
        GetDynamicObjectPos(NGGate, Positions[5][0], Positions[5][1], Positions[5][2]);
       	GetDynamicObjectPos(SASDGate1, Positions[9][0], Positions[9][1], Positions[9][2]);
        GetDynamicObjectPos(SASDGate2, Positions[10][0], Positions[10][1], Positions[10][2]);
        GetDynamicObjectPos(SASDGate3, Positions[11][0], Positions[11][1], Positions[11][2]);
        GetDynamicObjectPos(nationalGATE, Positions[12][0], Positions[12][1], Positions[12][2]);
        GetDynamicObjectPos(nationalGATE2, Positions[13][0], Positions[13][1], Positions[13][2]);

        if(IsPlayerInRangeOfPoint(playerid, 8.0, 1379.7907714844, -1678.4444580078, 13.386324882507)) {
            if(COURTGStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(COURTGate, 1389.12402344,-1679.52185059,12.97999668, 4);
                COURTGStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(COURTGate, 1383.96484375,-1679.52185059,12.97999668, 4);
                COURTGStatus = 0;
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 8.0, 1374.4561767578, -324.36892700195, 2.9602181911469)) {
            if(SFPDGStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate, 0, 359.49356079102, 18.847045898438);
                SFPDGStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate, 0, 89.784210205078, 18.848266601563);
                SFPDGStatus = 0;
            }
        }
        if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[1][0], Positions[1][1], Positions[1][2]) < 15.0 ) {
            if(LSPDGateStatus == 0 ) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(LSPDGate, 0.000000, 0, 90);
                LSPDGateStatus = 1;
            }
            else {
                LSPDGateStatus = 0;
                SetDynamicObjectRot(LSPDGate, 0.000000, 90, 90);
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[9][0], Positions[9][1], Positions[9][2]) < 15.0 ) {
            if(SASDGate1Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SASDGate1, 0, 0, 90);
                SASDGate1Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SASDGate1, 0, 90, 90);
                SASDGate1Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[10][0], Positions[10][1], Positions[10][2]) < 15.0 ) {
            if(SASDGate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SASDGate2, 2335, 2443.45, 0.0, 3);
                SASDGate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SASDGate2, 2335, 2443.45, 6.0, 3);
                SASDGate2Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[11][0], Positions[11][1], Positions[11][2]) < 15.0 ) {
            if(SASDGate3Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SASDGate3, 2294, 2511, 3.26, 3);
                SASDGate3Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SASDGate3, 2294, 2502, 3.26, 3);
                SASDGate3Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0 ) {
            if(LSPDGate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(LSPDGate2, 1588.6501464844, -1638.0750732422, 6.2343215942383, 3);
                LSPDGate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(LSPDGate2, 1588.6428222656, -1638.02734375, 15.240161895752, 3);
                LSPDGate2Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0 ) {
            if(LSPDGate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(LSPDGate2, 313.49652099609, -1482.9189453125, 26.682577133179, 3);
                LSPDGate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(LSPDGate2, 320.40628051758, -1487.9129638672, 26.900407791138, 3);
                LSPDGate2Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[6][0], Positions[6][1], Positions[6][2]) < 15.0 ) {
            if(SFPDGate1Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate1, 0.000000, 0, 90);
                SFPDGate1Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate1, 0.000000, 90, 90);
                SFPDGate1Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[7][0], Positions[7][1], Positions[7][2]) < 15.0 ) {
            if(SFPDGate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate2, 0.000000, 0, 90);
                SFPDGate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SetDynamicObjectRot(SFPDGate2, 0.000000, 270, 90);
                SFPDGate2Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[8][0], Positions[8][1], Positions[8][2]) < 15.0 ) {
            if(SFPDGate3Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SFPDGate3, -1631.62304688,688.14843750,15.08664131, 4.5);
                SFPDGate3Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SFPDGate3, -1631.62316895,688.14910889,10.18671608, 4.5);
                SFPDGate3Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[2][0], Positions[2][1], Positions[2][2]) < 15.0 ) {
            if(FBIGate1Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FBIGate1, 313.49652099609, -1482.9189453125, 26.682577133179, 3);
                FBIGate1Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FBIGate1, 320.40628051758, -1487.9129638672, 26.900407791138, 3);
                FBIGate1Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[3][0], Positions[3][1], Positions[3][2]) < 15.0 ) {
            if(FBIGate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FBIGate2, 290.56341552734, -1547.8900146484, 27.16854095459, 3);
                FBIGate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FBIGate2, 283.96463012695, -1543.154296875, 27.167940139771, 3);
                FBIGate2Status = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[5][0], Positions[5][1], Positions[5][2]) < 15.0 ) {
            if(NGGateStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(NGGate, 96.809570, 1920.160156, 21.000000, 3);
                NGGateStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(NGGate, 96.810302, 1920.160156, 17.299999, 3);
                NGGateStatus = 0;
            }
        }
         else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) {
    	 	if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[12][0], Positions[12][1], Positions[12][2]) < 15.0 ) {
         	   if(nationalStatus == 0) {
         	       format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
         	       ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         	       MoveDynamicObject(nationalGATE, 207.36718750,1875.72949219,13.93899250,3);
         	       MoveDynamicObject(nationalGATE2,220.46093750,1875.70898438,13.93899250,3);
         	       nationalStatus = 1;
         	   }
         	   else {
         	       format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
         	       ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         	       MoveDynamicObject(nationalGATE, 211.86804199,1875.72998047,13.93899250,3);
         	       MoveDynamicObject(nationalGATE2,215.96099854,1875.70983887,13.93899250,3);
         	       nationalStatus = 0;
         	   }
        	}
		}
	}
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
        GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
        GetDynamicObjectPos(SANGate, Positions[6][0], Positions[6][1], Positions[6][2]);
        if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[6][0], Positions[6][1], Positions[6][2]) < 15.0 ) {
            if(SANGateStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SANGate, 773.99975585938, -1384.8256835938, 12.719062805176, 4.5000);
                SANGateStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(SANGate, 781.77154541016, -1384.7692871094, 12.72666358947, 4.5000);
                SANGateStatus = 0;
            }
        }
    }
    else if(PlayerInfo[playerid][pFMember] == 5) {
        GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
        GetDynamicObjectPos(TRIGate, Positions[6][0], Positions[6][1], Positions[6][2]);
        if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[6][0], Positions[6][1], Positions[6][2]) < 25.0 ) {
            if(TRIGateStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(TRIGate, 1637.21875, -1852.6630859375, 12.535882949829, 4.5000);
                TRIGateStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(TRIGate, 1627.21875, -1852.6630859375, 12.535882949829, 4.5000);
                TRIGateStatus = 0;
            }
        }
    }
    else if(PlayerInfo[playerid][pFMember] == 1)
	{
        GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
        GetDynamicObjectPos(FAM1Gate, Positions[1][0], Positions[1][1], Positions[1][2]);
        GetDynamicObjectPos(Fam2Gate, Positions[2][0], Positions[2][1], Positions[2][2]);
        GetDynamicObjectPos(Fam2Gate2, Positions[3][0], Positions[3][1], Positions[3][2]);
        if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[1][0], Positions[1][1], Positions[1][2]) < 15.0 ) {
            if(FAM1GateStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FAM1Gate, 242.89768981934 , -151.99508666992 , 0.16124999523163 ,2);
                FAM1GateStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(FAM1Gate, 242.8935546875 , -160.873046875 , 0.16124999523163 ,2);
                FAM1GateStatus = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[2][0], Positions[2][1], Positions[2][2]) < 15.0 ) {
            if(Fam2GateStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(Fam2Gate,-2510.72363281,2351.93286133,3.98769379 ,2);
                Fam2GateStatus = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(Fam2Gate, -2502.72363281,2351.93286133,3.98769379 ,2);
                Fam2GateStatus = 0;
            }
        }
        else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[3][0], Positions[3][1], Positions[3][2]) < 15.0 ) {
            if(Fam2Gate2Status == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(Fam2Gate2,-2256.07031250,2383.29785156,5.71109533,2);
                Fam2Gate2Status = 1;
            }
            else {
                format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(Fam2Gate2,-2263.61,2376.62,5.71109533,2);
                Fam2Gate2Status = 0;
            }
        }
    }
    return 1;
}
Reply
#7

Update streamer plugin: https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#8

My Errors and warnings

Код:
Roleplay\pawno\include\streamer.inc(382) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
Roleplay\pawno\include\streamer.inc(382) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
Roleplay\pawno\include\streamer.inc(404) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
Roleplay\pawno\include\streamer.inc(406) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
Reply
#9

Update your includes: Download the latest server package from www.sa-mp.com/download and extract the "Pawno" folder to your server's directory. Also make sure that you are opening the Pawno that has the correct includes (Execute pawno.exe and then open your script from there)
Reply
#10

Thank you So much. Reped and fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)