Поправил немного код, спасибо, ZLOY5.
Код
globals
gamecache gc
endglobals
function Trig_test_Actions takes nothing returns nothing
local integer n = 140
call StoreInteger(gc,"1","1", n)
call SyncStoredInteger(gc,"1", "1")
call TriggerSleepAction(2.)
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,0,I2S(GetStoredInteger(gc,"1","1")))
endfunction
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger()
call TriggerRegisterPlayerChatEvent( gg_trg_test, Player(0), "/", true)
call TriggerAddAction( gg_trg_test, function Trig_test_Actions )
gc = InitGameCache("test.w3v")
endfunction