Gate's For Specific Faction ?
#1

How Would I make a gate open for only one faction this is what i have

Код:
public OnPlayerCommandText(playerid, cmdtext[])//
{
	if (strcmp("/AGate1O", cmdtext, true, 10) == 0)
	{
		MoveObject(AGate1, 3648.7119140625, -651.322265625, -1.7251167297363, 3.5);
		SendClientMessage(playerid, 0xB8860BAA, "The Admin Island Gate Has been opened please use /AGate1C to Close it");
		return 1;
	}
	if (strcmp("/AGate1C", cmdtext, true, 10) == 0)
	{
	  MoveObject(AGate1, 3648.7119140625, -651.322265625, 9.5248832702637, 3.5);
	  SendClientMessage(playerid, 0xB8860BAA, "Thank you the Admin Island Gate has been Closed");
	  return 1;
	} if (strcmp("/MGOPEN1", cmdtext, true, 10) == 0 && pGang[playerid]==2)
	{
		MoveObject(CGate1, 2832.1252441406, -1555.6474609375, 10.096872329712, 3.5);
		SendClientMessage(playerid, 0xB8860BAA, "The Maldini Family Gate Has Open");
		return 1;
	}
	if (strcmp("/MGCLOSE1", cmdtext, true, 10) == 0 && pGang[playerid]==2)
	{
	  MoveObject(CGate1, 2830.5666503906, -1565.1704101563, 10.096872329712, 3.5);
	  SendClientMessage(playerid, 0xFFFFFFAA, "Thank you The Maldini Family Gate Has Closed");
	  return 1;
	}
	return 0;
}
and This is the error i get when i try to compile

Код:
C:\Users\GIO\Desktop\Roleplay\filterscripts\MattAI.pwn(95) : error 028: invalid subscript (not an array or too many subscripts): "pGang"
C:\Users\GIO\Desktop\Roleplay\filterscripts\MattAI.pwn(95) : warning 215: expression has no effect
C:\Users\GIO\Desktop\Roleplay\filterscripts\MattAI.pwn(95) : error 001: expected token: ";", but found "]"
C:\Users\GIO\Desktop\Roleplay\filterscripts\MattAI.pwn(95) : error 029: invalid expression, assumed zero
C:\Users\GIO\Desktop\Roleplay\filterscripts\MattAI.pwn(95) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
i Dont know what to do Can Some one help i need it to be a filterscript , the game mode it's for is a larp edit, sorta any ways if that makes a diffrence i dont know lol so help please ?
Reply


Messages In This Thread
Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 12:52
Re: Gate's For Specific Faction ? - by aircombat - 15.03.2010, 12:58
Re: Gate's For Specific Faction ? - by Kurence - 15.03.2010, 13:18
Re: Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 13:25
Re: Gate's For Specific Faction ? - by aircombat - 15.03.2010, 14:07
Re: Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)