Problem with making moveable gates
#3

Ow yeah im sorry it's not the moving gate, it's just when i enter this:



pawn Код:
if (strcmp( "/opengate", cmdtext, true) == 0) {
        else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                        if (IsPlayerInRangeOfPoint(playerid, 7,88.7840,1920.2301,17.8962))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg = 1;
                        }
                        else if (IsPlayerInRangeOfPoint(playerid, 7,109.6989,1920.6976,18.6153))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg2 = 1;
                        }
                return 1;
                }
It gives me errors
Reply


Messages In This Thread
Problem with making moveable gates - by jw_peeters - 12.03.2012, 17:53
Re: Problem with making moveable gates - by Faisal_khan - 12.03.2012, 17:56
Re: Problem with making moveable gates - by jw_peeters - 12.03.2012, 17:58
Re: Problem with making moveable gates - by jw_peeters - 12.03.2012, 18:15
Re: Problem with making moveable gates - by Issam - 12.03.2012, 18:15
Re: Problem with making moveable gates - by jw_peeters - 12.03.2012, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)