What's wrong with this code??!
#1

So, i train my low scripting skills on one of Raven's Gamemodes, i tryed create movable gates for Yamaguchi mafia and get failed..


Код:
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
		{
			if (IsPlayerInRangeOfPoint(playerid, 15,785.09997558594,-1152.4000244141,25.299999237061))
			{
			    if(yamag == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
			   	MoveDynamicObject(yamaguchigates1,785.40002441406, -1162.9000244141, 25.39999961853, 3.5);
			   	SetTimer("GateCloseYama", 7000, 0);
		    	SendClientMessage(playerid, COLOR_BLUE,"The Yamaguchi 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 Yamaguchi gates #1.", sendername);
		      	ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		      	yamag = 1;
            }
			else
			{
				SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
				return 1;
		    }
		}
All compiles without Errors and Warnings, BUT when i go in server and try my new gates, noone command works... i type /opengate /go /help /stats /s ALL and it says ''SERVER: Unknown Command'' wtf? what i do wrong with this code? i cant understand this ; ( p.s when i delete that code then all cmds works again..
Reply


Messages In This Thread
What's wrong with this code??! - by Liepaajnieks - 20.07.2012, 22:17
Re: What's wrong with this code??! - by Liepaajnieks - 21.07.2012, 09:20
Re: What's wrong with this code??! - by RedJohn - 21.07.2012, 09:37
Re: What's wrong with this code??! - by Rudy_ - 21.07.2012, 09:44
Re: What's wrong with this code??! - by nepstep - 21.07.2012, 09:55
Re: What's wrong with this code??! - by Liepaajnieks - 21.07.2012, 10:17
Re: What's wrong with this code??! - by Liepaajnieks - 21.07.2012, 22:10
Re: What's wrong with this code??! - by Liepaajnieks - 22.07.2012, 01:05

Forum Jump:


Users browsing this thread: 1 Guest(s)