SA-MP Forums Archive
Gate Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gate Help (/showthread.php?tid=249940)



Gate Help - rati555 - 21.04.2011

Код:
error 001: expected token: ")", but found "{"
Command:
Код:
if (strcmp(cmdtext, "/pdopen", true))
	{
		if(IsAPDMember(playerid)
		{
			MoveDynamicObject(pdgate1,2245.82788086,2466.23437500,12.09370422,0.8);
			SetTimer("GateClose", 12000, 0);
			SendClientMessage(playerid,0x15AAEAAA,"* Gate Is open!");
			return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_GREY,"* Staff Only!");
		}
	}



Re: Gate Help - Stigg - 21.04.2011

Change:
pawn Код:
if(IsAPDMember(playerid)
To:
pawn Код:
if(IsAPDMember(playerid))