PDA

View Full Version : Thread on level



qwerty
29th August 2015, 21:12
Hi,

I'm currently working on a SD pub mod for my clan. I rewrote the stock zPAM 2.07 pub mod and added some cool function with libcod. One of them is a vote system. it works fine when the vote ends on the same round where it starts. But if u start a vote and suddenly the current round ends, the loop does not "survive" the next round. The thread runs on the level. Any idea how to solve that? Thanks in advance!

IzNoGoD
29th August 2015, 21:21
Cant, sd uses fast_restart, which restarts the script. You could store it in some game["hello"] vars and re-initiate on "round start" though.

qwerty
30th August 2015, 02:30
Thanks, it works!