- Joined
- Aug 25, 2004
- Messages
- 473
Using Taur's help i have written a trigger that allows me to return the aray number of the expired time. but fow some reason, when i save the map, WE gives me Jass Error masseges. Here is a trigger
After saving the map, i get folowing error (see attached screenshot)
-
release
-
Events
-
Time - TimerPlayerJail[1] expires
-
Time - TimerPlayerJail[2] expires
-
Time - TimerPlayerJail[3] expires
-
Time - TimerPlayerJail[5] expires
-
Time - TimerPlayerJail[6] expires
-
Time - TimerPlayerJail[7] expires
-
Time - TimerPlayerJail[8] expires
-
Time - TimerPlayerJail[9] expires
-
Time - TimerPlayerJail[10] expires
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Custom script: if GetExpiredTimer() == udg_TimerPlayerJail[bj_forLoopAIndex]) then
-
Set TempInteger = (Integer A)
-
Custom script: endif
-
-
-
Countdown Timer - Destroy TWindowJail[TempInteger]
-
Set TempPoint = (Random point in Released From Jail <gen>)
-
Unit - Move HeroUnit[TempInteger] instantly to TempPoint
-
Unit - Set life of HeroUnit[TempInteger] to 100.00%
-
Unit - Set mana of HeroUnit[TempInteger] to 100.00%
-
Camera - Pan camera for (Player(TempInteger)) to TempPoint over 1.00 seconds
-
Custom script: call RemoveLocation (udg_TempPoint)
-
-
After saving the map, i get folowing error (see attached screenshot)