SA-MP Forums Archive
simple question - 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)
+--- Thread: simple question (/showthread.php?tid=620080)



simple question - StR_MaRy - 25.10.2016

hey guys i have a sistem when a player report or ask a question and no one answear to him and the player disconnect from server the report or question is still pending and i have a script that if a player who had an active report,question and he disconnect the question or report it will remain i have a textdraw like Reports: 1 / Questions: 1 and the report,question wont destroy after player disconnect i have this scripte under onplayerdisconnect

Код HTML:
if(HasReported[playerid] == 1)
	{
		Reports--;
		UpdateStaffTextdraw();
	}
	if(HelperAnswer[playerid] != -1)
	{
		Questions--;
		UpdateStaffTextdraw();
	}



Re: simple question - Yaa - 25.10.2016

What the problem now ?


Re: simple question - StR_MaRy - 25.10.2016

when player disconnect the report or question wont disappear if no one answeared before the player DC