Textdraw bugs / SetTimerEx stops when press Alt+Tab - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw bugs / SetTimerEx stops when press Alt+Tab (
/showthread.php?tid=169311)
Textdraw bugs / SetTimerEx stops when press Alt+Tab -
simstosh - 19.08.2010
Well, this never happens, or I never noticed about. But, on my server I have a Speedometer/Status check made in Textdraw (made by me/friend), and on Status check, he shows the Online time of a player.
But the Speedo and the Status check has a SetTimerEx setted when the player login on the server (by a dialog), and the function started for the player runs in 1 sec loop, increases 1 on the OnlineTime variable every sec, and decreases 1 on Reports/other commands variables every sec.
If a player press Alt+Tab, when he came back, the SetTimerEx stops from running, and the commands and Online Time system bugs (doesn't record the new values/unset the times). If player press Esc, doesn't stop, but if he press Alt+Tab, the timer stops.
Why this happens? I don't understand...
Thanks
Re: Textdraw bugs / SetTimerEx stops when press Alt+Tab -
Carlton - 19.08.2010
When a player is alt-tabbed you can't edit their variables. It just happens because the playerid is unresponsive.