[PLEASE HELP]Enemy Gangzone Message
#6

Quote:
Originally Posted by dice7
Just make a timer and get the players pos. If he's in an enemy gang zone, then display the message
Search for IsPlayerInZone or something
So, I TRIED to make a script with IsPlayerInZone, but it doesn't compile (Ive got a few errors)...
ERRORS:
Код:
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(748) : error 055: start of function body without function header
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(749) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(751) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(756) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(758) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(764) : warning 203: symbol is never used: "Zone"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
CODE (Parts of my GM):
Код:
forward CheckPlayerGangzone(playerid);

new Zone[MAX_PLAYERS];

Under OnGameModeInit:
SetTimer("CheckPlayerGangZone",1000,1);

public CheckPlayerGangZone(playerid);
{
	if (gTeam[playerid]==TEAM_TERROR)
	{
		if (IsPlayerInZone(playerid,armyzone)==1)
		{
	      Gangzone[playerid] = TEAM_ARMY;
		}
	}
	else
	{
		if (IsPlayerInZone(playerid,terrorzone)==1)
		{
	      Gangzone[playerid] = TEAM_TERROR;
		}
	}
}
Help Please ;s
Thanks
Reply


Messages In This Thread
[PLEASE HELP]Enemy Gangzone Message - by Nameless303 - 01.11.2009, 23:42
Re: [UNSOLVED (Help)]Enemy Gangzone Message - by CracK - 02.11.2009, 05:35
Re: [UNSOLVED (Help)]Enemy Gangzone Message - by Nameless303 - 02.11.2009, 09:41
Re: [HELP]Enemy Gangzone Message - by CracK - 02.11.2009, 10:45
Re: [HELP]Enemy Gangzone Message - by dice7 - 02.11.2009, 11:02
Re: [HELP]Enemy Gangzone Message - by Nameless303 - 02.11.2009, 12:16
Re: [HELP]Enemy Gangzone Message - by dice7 - 02.11.2009, 12:19
Re: [HELP]Enemy Gangzone Message - by Nameless303 - 02.11.2009, 12:24
Re: [HELP]Enemy Gangzone Message - by Nameless303 - 02.11.2009, 13:32
Re: [PLEASE HELP]Enemy Gangzone Message - by dice7 - 02.11.2009, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)