sensesxfailx
New Member
- Reaction score
- 0
I need help with this leaderboard i dont know how to fix the error.
It says that line 66 has a Expected 'set' which is the error
Line 66 is call ForForce( GetPlayersAll(), function Trig_Leaderboard_Func003A )
The whole trigger is below, Please help
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer array udg_Player_Kills
// Generated
rect gg_rct_Spawn = null
rect gg_rct_sight = null
trigger gg_trg_Begining = null
trigger gg_trg_spawning = null
trigger gg_trg_Sight = null
rect gg_rct_Blade = null
rect gg_rct_Demon = null
rect gg_rct_Player1 = null
rect gg_rct_Player2 = null
rect gg_rct_Sight2 = null
rect gg_rct_Spawn2 = null
trigger gg_trg_Blade = null
unit gg_unit_Obla_0007 = null
trigger gg_trg_Blade_Copy = null
trigger gg_trg_Demon = null
unit gg_unit_Edem_0008 = null
trigger gg_trg_Demon_Copy = null
rect gg_rct_Choose = null
trigger gg_trg_Leaderboard = null
trigger gg_trg_Unit_Died = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set i = 0
loop
exitwhen (i > 1)
set udg_Player_Kills = 0
set i = i + 1
endloop
endfunction
function Trig_Leaderboard_Func003Func001C takes nothing returns boolean
if ( not ( GetPlayerController(GetEnumPlayer()) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Leaderboard_Func003A takes nothing returns nothing
if ( Trig_Leaderboard_Func003Func001C() ) then
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
else
call DoNothing( )
endif
endfunction
function Trig_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_020" )
bj_wantDestroyGroup=true
call ForForce( GetPlayersAll(), function Trig_Leaderboard_Func003A )
call LeaderboardDisplayBJ( true, GetLastCreatedLeaderboard() )
endfunction
//===========================================================================
function InitTrig_Leaderboard takes nothing returns nothing
set gg_trg_Leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Leaderboard, 5 )
call TriggerAddAction( gg_trg_Leaderboard, function Trig_Leaderboard_Actions )
endfunction
It says that line 66 has a Expected 'set' which is the error
Line 66 is call ForForce( GetPlayersAll(), function Trig_Leaderboard_Func003A )
The whole trigger is below, Please help
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer array udg_Player_Kills
// Generated
rect gg_rct_Spawn = null
rect gg_rct_sight = null
trigger gg_trg_Begining = null
trigger gg_trg_spawning = null
trigger gg_trg_Sight = null
rect gg_rct_Blade = null
rect gg_rct_Demon = null
rect gg_rct_Player1 = null
rect gg_rct_Player2 = null
rect gg_rct_Sight2 = null
rect gg_rct_Spawn2 = null
trigger gg_trg_Blade = null
unit gg_unit_Obla_0007 = null
trigger gg_trg_Blade_Copy = null
trigger gg_trg_Demon = null
unit gg_unit_Edem_0008 = null
trigger gg_trg_Demon_Copy = null
rect gg_rct_Choose = null
trigger gg_trg_Leaderboard = null
trigger gg_trg_Unit_Died = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set i = 0
loop
exitwhen (i > 1)
set udg_Player_Kills = 0
set i = i + 1
endloop
endfunction
function Trig_Leaderboard_Func003Func001C takes nothing returns boolean
if ( not ( GetPlayerController(GetEnumPlayer()) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Leaderboard_Func003A takes nothing returns nothing
if ( Trig_Leaderboard_Func003Func001C() ) then
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
else
call DoNothing( )
endif
endfunction
function Trig_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_020" )
bj_wantDestroyGroup=true
call ForForce( GetPlayersAll(), function Trig_Leaderboard_Func003A )
call LeaderboardDisplayBJ( true, GetLastCreatedLeaderboard() )
endfunction
//===========================================================================
function InitTrig_Leaderboard takes nothing returns nothing
set gg_trg_Leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Leaderboard, 5 )
call TriggerAddAction( gg_trg_Leaderboard, function Trig_Leaderboard_Actions )
endfunction