error g_script


(=ds=bart) #1

i whent and try to make a flagpole work .
heres my prob .
G_script_scriptparse(),error (line 76): ‘}’ expected,end of script found
here the script

game_manager
{
	spawn
	{
		// Game rules
		wm_axis_respawntime	3
		wm_allied_respawntime	3
		wm_set_round_timelimit	60
		wm_setwinner -1
		
		// accums
		globalaccum 0 set 0		// what is the highest flag number taken
		
// FLAG 1
//
flag1
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 1!"
		//alertentity flag1spawns
		alertentity flag1area

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"Allies capture the flag 1!"
		//alertentity flag1spawns
		alertentity flag1area

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

	trigger kill
	{
		remove
	}
}


(nUllSkillZ) #2

There are two “}” missing:


game_manager
{
   spawn
   {
      // Game rules
      wm_axis_respawntime   3
      wm_allied_respawntime   3
      wm_set_round_timelimit   60
      wm_setwinner -1
      
      // accums
      globalaccum 0 set 0      // what is the highest flag number taken

   } // <- missing
} // <- missing

// FLAG 1 
// ...


(=ds=bart) #3

thx that i ditnt spot that one
weird to match wine i guess