I made a trigger and i want to know if it will leak.
If yes, how can i change it not to leak?
Here`s the trigger:
This trigger runs when a player types "/playersinfo" in chat so it'n not going to be runned just once.
If yes, how can i change it not to leak?
Here`s the trigger:
-
SpVAR PlayersINFO
-
Events
-
Conditions
-
Actions
-
Set Players_Count[1] = 0
-
Set Players_Count[2] = 0
-
Set Players_Count[3] = 0
-
Set Players_INFO = Empty String
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) slot status) Equal to (==) Is playing
-
-
Then - Actions
-
Set Players_Count[1] = (Players_Count[1] + 1)
-
-
Else - Actions
-
If (((Picked player) slot status) Equal to (==) Has left the game) then do (Set Players_Count[2] = (Players_Count[2] + 1)) else do (Do nothing)
-
-
-
-
-
Set Players_Count[3] = (Players_Count[1] + Players_Count[2])
-
Set Players_INFO = ((|c00ffcc00The total number of players is |r + (String(Players_Count[3]))) + ((. + (String(Players_Count[1]))) + ((|c00ffcc00 are still here and |r + (String(Players_Count[2]))) + |c00ffcc00 player(s) left the game.|r)))
-
-
This trigger runs when a player types "/playersinfo" in chat so it'n not going to be runned just once.