Command bug
#1

Hello,
Thanks for viewing my post,
I'm making a gates system, this is my command :
Код:
	if(!strcmp(cmdtext, "/hg", true) || !strcmp(cmdtext, "/housegate", true))
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
		    SendClientMessage(playerid, COLOR_GREY, "Please enter the gate's password.");
		    return 1;
		}
		for(new s = 0; s <= sizeof(GateInfo); s++)
		{
			if(strcmp(tmp, GateInfo[s][gCode], true) == 0)
			{
			    if(GateInfo[s][gStatus] == 0)
				{
				    GateInfo[s][gStatus] = 1;
				    new Float:bridqs;
				    bridqs = GateInfo[s][Poz] - 5.0;
				    MoveDynamicObject(housegate[s], GateInfo[s][Pox], GateInfo[s][Poy], bridqs, 0.8);
					SendClientMessage(playerid, COLOR_WHITE, "Opened the gated.");
					return 1;
				}
				else
				{
				    GateInfo[s][gStatus] = 0;
				    MoveDynamicObject(housegate[s], GateInfo[s][Pox], GateInfo[s][Poy], GateInfo[s][Poz], 0.8);
        			SendClientMessage(playerid, COLOR_WHITE, "Closed the gated.");
					return 1;
				}
			}
		}
		return 1;
	}
But when I type it I receive an unknown command error.
Please help !
Reply


Messages In This Thread
Command bug - by HellviRus - 24.12.2011, 19:35
Re: Command bug - by Norck - 24.12.2011, 20:35
Re: Command bug - by HellviRus - 25.12.2011, 06:38
Re: Command bug - by Buzzbomb - 25.12.2011, 06:44
Re: Command bug - by HellviRus - 25.12.2011, 06:52
Re: Command bug - by Buzzbomb - 25.12.2011, 07:00
Re: Command bug - by HellviRus - 25.12.2011, 07:15
Re: Command bug - by Buzzbomb - 25.12.2011, 07:24
Re: Command bug - by HellviRus - 25.12.2011, 07:27
Re: Command bug - by Buzzbomb - 25.12.2011, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)