Forum

> > CS2D > General > inentityzone causes EXCEPTION_ACCESS_VIOLATION
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch inentityzone causes EXCEPTION_ACCESS_VIOLATION

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt inentityzone causes EXCEPTION_ACCESS_VIOLATION

Trotskygrad
User Off Offline

Zitieren
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?
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht