eejin
Tool Moderator
- Joined
- Mar 6, 2017
- Messages
- 234
Hi, i was wondering why the following snippet doesn't seem to work. I'd expect it to work for all players, but it doesn't seem to do anything.
Also I get this syntax error, but it works fine ingame:
Code:
function Trig_Add_Strength_Actions takes nothing returns nothing
call DisplayTextToPlayer(Player(0),0,0,"You just pressed ESC")
endfunction
//===========================================================================
function InitTrig_Add_Strength takes nothing returns nothing
local integer i = 0
set gg_trg_Untitled_Trigger_001_Copy = CreateTrigger()
loop
exitwhen (i > 9)
set i = i + 1
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001_Copy, Player(i), "-str", false )
endloop
call TriggerAddAction( gg_trg_Untitled_Trigger_001_Copy, function Trig_Untitled_Trigger_001_Copy_Actions )
endfunction
Also I get this syntax error, but it works fine ingame: