Tons of things come up undefined?
#1

When I remove this:

Код:
        }else if(PlayerInfo[playerid][pMember] == 4 || AdminDuty[playerid]==1 && !PlayerToPoint(15.0, playerid,1138.8385009766, -1292.962890625, 14.752015113831))
        {
            if (PlayerToPoint(15.0, playerid, 1138.8385009766, -1292.962890625, 14.752015113831))
            {
				if(firegateopen == 1)
				{
					SendClientMessage(playerid,COLOR_GREY," The Gate is already open !");
					return 1;
				}
                firegateopen = 1;
                MoveDynamicObject(firegate, 1138.8762207031, -1290.7132568359, 16.952016830444, 1.5);
                SetTimer("GateClose", 15000, 0);
                SendClientMessage(playerid, COLOR_WHITE,"A garage is opened and will close in 15 seconds.");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GiveNameSpace(sendername);
                if(PlayerInfo[playerid][pMaskUse] == 1) { format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); }
                format(string, sizeof(string), "* %s takes their remote and opens a gate.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
Everything works fine. But with it, i get 26 errors of stuff being undefined. Any tips? I'm so frustrated.

Basically, all it does is opens a garage when you type a CMD. It used to be scripted in but I just rewrote it. I changed what firegate is defined as and such.
Reply


Messages In This Thread
Tons of things come up undefined? - by Zack9764 - 18.01.2011, 23:05
Re: Tons of things come up undefined? - by Anthonyx3' - 18.01.2011, 23:18
Re: Tons of things come up undefined? - by Zack9764 - 18.01.2011, 23:22
Re: Tons of things come up undefined? - by Anthonyx3' - 18.01.2011, 23:33
Re: Tons of things come up undefined? - by Zack9764 - 18.01.2011, 23:35
Re: Tons of things come up undefined? - by Anthonyx3' - 18.01.2011, 23:39
Re: Tons of things come up undefined? - by Zack9764 - 18.01.2011, 23:42
Re: Tons of things come up undefined? - by Haydz - 19.01.2011, 00:20
Re: Tons of things come up undefined? - by Marricio - 19.01.2011, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)