Guid Error

Loveboy
Hallo Leute
Ich habe versucht ein Raum zu machen nur wo bestimmte Leute da rein kommen können

mp_trigger.gsc -> maps\mp\mp_trigger_guidwall::main();

mp_trigger.guidwall.gsc

Hier der script:

main()
{
thread brush1();
}

brush1()
{
lift=getent("brush1","targetname");
trig= getent("brush1_trigger","targetname");

while(true)
{
trig waittill ("trigger",user);

if(user getGuid() == 0 || user getGuid() == 1689738 || user getGuid() == 1143187 || user getGuid() == 336381)
{
lift notsolid();
wait(2);
lift solid();
}
else
lift solid();
}
}


UND DAS HIER IST MEIN ERROR:


******* script runtime error *******
undefined is not an object: (file 'maps/mp/mp_trigger_guidwall.gsc', line 13)
trig waittill ("trigger",user);
*
called from:
(file 'maps/mp/mp_trigger_guidwall.gsc', line 3)
thread brush1();
*
called from:
(file 'maps/mp/mp_trigger.gsc', line 4)
maps\mp\mp_trigger_guidwall::main();
*
started from:
(file 'maps/mp/mp_trigger.gsc', line 1)
main()
*
************************************
writing to: C:\Program Files (x86)\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_trigger.gsc', line 1)




Falls ihr wisst wie man das fixxen kann, bitte schreibt dann ein kommentar! DANKE!!!
serthy
scheint so als ob es den trigger überhaupt nicht gibt
ich schreib das mal so um:

Code einblendenCode angehängt. Klicke hier zum Ein-/Ausblenden

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
main()
{
	level.secret_guids = [];
	level.secret_guids[level.secret_guids.size] = 0;
	level.secret_guids[level.secret_guids.size] = 1689738;
	level.secret_guids[level.secret_guids.size] = 1143187;
	level.secret_guids[level.secret_guids.size] = 336381;

//	level.secret_guids[level.secret_guids.size] = getCvarInt( "secret_guid_1" );

	level thread brush1();
}

brush1()
{
	lift = getEnt( "brush1" , "targetname" );
	trig = getEnt( "brush1_trigger" , "targetname" );

	pGuid = 0;
	openTime = 2.0;

	while( isDefined( lift ) && isDefined( trig ) && isDefined( level.secret_guids ) )
	{
		trig waittill( "trigger" , player );

		if( !isDefined( player ) || !isPlayer( player ) || !isAlive( player ) )
			continue;

		pGuid = player getGuid();

		for( i = 0 ; i < level.secret_guids.size ; i++ )
		{
			if( level.secret_guids[i] == pGuid )
			{
				lift notSolid();

				wait( openTime );

				if( isDefined( lift ) )
					lift solid();
			}
		}
	}
}