[Include] Single-Player Info Boxes
#19

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Lets say we use you function
pawn Код:
ShowInfoBox(..);
Now the timer id stored is 1. Just after the timer ends, we execute a custom timer:
pawn Код:
SetTimer("very_important_timer", ...);
Its id is 1 as well, but just after execution, we use your function again (note the custom timer is still alive):
pawn Код:
ShowInfoBox(..);
Your include kills "very_important_timer" timer, because as i previously mentioned, you don't have a check, or you don't reset the variable to "0" when the timers are no more running.
Timer. IDs. Are. Never. Used. Twice.

We execute a timer, its ID will be 1. We execute another timer, its ID will be 2. We execute another timer, its ID will be 3. We execute another timer, its ID will be 4. We execute another timer, its ID will be 5. We execute another timer, its ID will be 6. We execute another timer, its ID will be 7. We execute another timer, its ID will be 8. We execute another timer, its ID will be 9. We execute another timer, its ID will be 10. Etc, etc, etc.
Reply


Messages In This Thread
Single-Player Info Boxes - by Kevln - 29.10.2015, 05:00
Re: Single-Player Info Boxes - by N0FeaR - 29.10.2015, 05:27
Re: Single-Player Info Boxes - by DemME - 29.10.2015, 05:32
Re: Single-Player Info Boxes - by Alex Magaсa - 29.10.2015, 05:40
Re: Single-Player Info Boxes - by N0FeaR - 29.10.2015, 05:56
Re: Single-Player Info Boxes - by DemME - 29.10.2015, 05:58
Re: Single-Player Info Boxes - by Gammix - 29.10.2015, 06:12
Re: Single-Player Info Boxes - by DemME - 29.10.2015, 06:14
Re: Single-Player Info Boxes - by Gammix - 29.10.2015, 06:20
Re: Single-Player Info Boxes - by DemME - 29.10.2015, 06:22
Re: Single-Player Info Boxes - by N0FeaR - 29.10.2015, 06:22
Re: Single-Player Info Boxes - by Kevln - 29.10.2015, 13:18
Re: Single-Player Info Boxes - by Gammix - 29.10.2015, 13:24
Re: Single-Player Info Boxes - by ATGOggy - 29.10.2015, 13:25
Re: Single-Player Info Boxes - by Kevln - 29.10.2015, 13:57
Re: Single-Player Info Boxes - by DemME - 29.10.2015, 14:13
Re: Single-Player Info Boxes - by Kevln - 29.10.2015, 14:47
Re: Single-Player Info Boxes - by Gammix - 30.10.2015, 02:14
Re: Single-Player Info Boxes - by Kevln - 30.10.2015, 02:18
Re: Single-Player Info Boxes - by Gammix - 30.10.2015, 02:23
Re: Single-Player Info Boxes - by Kevln - 30.10.2015, 03:13

Forum Jump:


Users browsing this thread: 3 Guest(s)