SA-MP Forums Archive
Scripting problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting problem (/showthread.php?tid=326706)



Scripting problem - jw_peeters - 18.03.2012

Hey everyone,
I've a problem with these lines below:
pawn Код:
if(strcmp(cmdtext, "/sfopen", true))
    {
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
            if (IsPlayerInRangeOfPoint(playerid, 15,-1564.4650,661.7663,7.0391))
            {
                if(sfpdg1 == 1) {SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                MoveDynamicObject(sfpdg1,-1572.1999511719, 658.79998779297, 6.9000000953674, 0);
                SendClientMessage(playerid, COLOR_BLUE,"The Barrier is Opened.");
                SendClientMessage(playerid, COLOR_WHITE,"Hint: Use /sfclose to close it again.");
                format(string, sizeof(string), "* %s takes his/her remote and Open.", sendername);
                sfpdg1 = 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY,"* Not near a Barrier that you can open.");
            }
        }
        return 1;
    }
return 0;
If i add them, all my other commands just don't work anymore.

Can someone please tell me what to do?
I'd appreciate it.

Thanks


Re: Scripting problem - GAMER_PS2 - 18.03.2012

add in between other commands without return 0;


Re: Scripting problem - jw_peeters - 18.03.2012

ok i'll give it a go


Re: Scripting problem - jw_peeters - 18.03.2012

it still doesn't work.
Does anyone have another idea/option?