SA-MP Forums Archive
Question on game mode exit - 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: Question on game mode exit (/showthread.php?tid=161090)



Question on game mode exit - aNdReSk - 18.07.2010

Why do u destroy things anyways? Textdraws, timers?

thought ur exiting. Doesnt it it close them? :P


Re: Question on game mode exit - bigcomfycouch - 18.07.2010

They'll show for a player who comes in and has the playerid of someone who was viewing the textdraw previously.


Re: Question on game mode exit - aNdReSk - 18.07.2010

but isnt that set on player disconnect rather than on gamemode exit


Re: Question on game mode exit - Kar - 18.07.2010

i told you onplayerdisconnect hidetext draw ongamemodeexit destroy


Re: Question on game mode exit - aNdReSk - 18.07.2010

yeah thisi s not related to that textdraw, but rather, why destroy everything! kill timers! :P when closing gamemode


Re: Question on game mode exit - Joe_ - 18.07.2010

Intresting question, I've never really tested that, there's some logic in your question though lol.

Only real function of it is when the GAMEMODE is exited (that applies for changing gamemode, too)

If you're changing gamemode, I assume the textdraws you created in the other one may still stay? (also never tested)

If it automaticly destroys the stuff, That's another common example of why you shouldn't copy somebody just because their better than you :P.

If you have time, please test it, I'd be intrested in the results !
Although, I don't know how you'll test it, I assume if you print the data, then read the logs, you'll get your result.

If I have time, I'd also be intrested in testing it, but not today.


Re: Question on game mode exit - [DK]JaloNik - 18.07.2010

Quote:
Originally Posted by Joe_
Посмотреть сообщение
Intresting question, I've never really tested that, there's some logic in your question though lol.

Only real function of it is when the GAMEMODE is exited (that applies for changing gamemode, too)

If you're changing gamemode, I assume the textdraws you created in the other one may still stay? (also never tested)

If it automaticly destroys the stuff, That's another common example of why you shouldn't copy somebody just because their better than you :P.

If you have time, please test it, I'd be intrested in the results !
Although, I don't know how you'll test it, I assume if you print the data, then read the logs, you'll get your result.

If I have time, I'd also be intrested in testing it, but not today.
Agreed!!! (subscribing to topic!)


Re: Question on game mode exit - aNdReSk - 18.07.2010

Tested changing my gamemode (it doesnt destroy 2 textdraws out of 5 i have).
did /rcon changemode lvdm
and all textdraws were successfully gone.


So it seems i dont have to destroy shit or kill timers on gamemodeexit?


Re: Question on game mode exit - Kar - 18.07.2010

ok do what you want. This Is just A Warning For The Future to Come When you Learn How To Script Better


Re: Question on game mode exit - BP13 - 18.07.2010

Hmm I always did because I thought there would be leftbehinds as in timers looping still and doubling things like objects and whatnot. Thought I never restart my serve with GMX because it can severely bug things sometimes.