DestroyFire Object Problem
#8

Quote:
Originally Posted by GTLS
Посмотреть сообщение
i Think you didnt understand my code when i wrote it to you. You have to kill FireTimer[playerid] when PuttingOutFire is called only once. set True to False as @Morpheus1992. True part is for repeat.

There were Two Timers. RandFireTimer and FireTimer[playerid]. the RandFireTimer is for creating Fire's at people's houses. and the other one is for Fire Fighter player who is extinguishing the fire. i told you in my post, set both to false to prevent unwanted lag and all in your server. You Put RandFireTimer to false and start it again when the previous fire is Extinguished.

http://forum.sa-mp.com/showpost.php?...00&postcount=8 Read my post again.

Also, we are not killing the FireTimer[playerid] anywhere because it was set to False on repeat according to my code. if you changed it to True, either set it to False or add KillTimer(FireTimer[playerid]) in public callback PuttingOutFire.

EDIT: WHy are you taking FireObject as a Player ID based Object? Fire Object is only 1 for each players. so Use
Код:
 DestroyObject(FireObject)
instead of
Код:
 DestroyObject(FireObject[playerid])
so if you have taken that Object as a MAX_PLAYERS object, remove that. again, read my whole http://forum.sa-mp.com/showpost.php?...tcount=8"]post to make it clear buddy.
I changed how you say, but oance the first fire is up all is normal, after i extinguishing the fire the second fire start with 2 fires and the message automaticly appear, the thirs fire start with 3 fires and again, again! Help me please.
Reply


Messages In This Thread
DestroyFire Object Problem - by MrTea - 14.05.2017, 15:53
Re: DestroyFire Object Problem - by Morpheus1992 - 14.05.2017, 16:09
Re: DestroyFire Object Problem - by MrTea - 14.05.2017, 18:05
Re: DestroyFire Object Problem - by MrTea - 15.05.2017, 13:33
Re: DestroyFire Object Problem - by iLearner - 15.05.2017, 13:36
Re: DestroyFire Object Problem - by MrTea - 15.05.2017, 14:46
Re: DestroyFire Object Problem - by GTLS - 15.05.2017, 16:31
Re: DestroyFire Object Problem - by MrTea - 16.05.2017, 15:26
Re: DestroyFire Object Problem - by GTLS - 16.05.2017, 18:13
Re: DestroyFire Object Problem - by GTLS - 17.05.2017, 10:01

Forum Jump:


Users browsing this thread: 3 Guest(s)