Forum

> > CS2D > General > inentityzone causes EXCEPTION_ACCESS_VIOLATION
Forums overviewCS2D overviewGeneral overviewLog in to reply

English inentityzone causes EXCEPTION_ACCESS_VIOLATION

4 replies
To the start Previous 1 Next To the start

old inentityzone causes EXCEPTION_ACCESS_VIOLATION

Trotskygrad
User Off Offline

Quote
so I made a sayfunc that checks which entity zone a player is it (it doesn't seem to work unfortunately)

it's fairly simple

1
2
3
4
5
6
7
8
9
10
11
12
if (text=="@entzone") then
	msg2(id,"Zones:")
	if(inentityzone(player(id,"tilex"),player(id,"tiley"),18) == true)then
		msg2(id,"Nobuild")
	end
	if(inentityzone(player(id,"tilex"),player(id,"tiley"),20) == true)then
		msg2(id,"Teamgate")
	end
	if(inentityzone(player(id,"tilex"),player(id,"tiley"),21) == true)then
		msg2(id,"NoWeather")
	end
end

however it appears to cause an exception_access_violation whenever called in an Info_T, Info_CT.

It doesn't work properly in any zone.

Does anyone know what I'm doing incorrectly?
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview