SA-MP Forums Archive
problem with Timers :\ ? - 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: problem with Timers :\ ? (/showthread.php?tid=174390)



problem with Timers :\ ? - pmk1 - 05.09.2010

hello people, i post to know why when i connect a NPC on my server, my Timers doesn't load then check my custom callbacks? i know it's coming from npcs because when i don't connect them, my timers work perfectly. What is wrong? do you need a piece of code? thanks for help


Re: problem with Timers :\ ? - pmk1 - 06.09.2010

bummmmmmmmmmmmmmmmmmmmmp


Re: problem with Timers :\ ? - iggy1 - 06.09.2010

I probably cant help you, as i know nothing about npc's never made one. But i think you would get a better response if you do show a little code people might spot the problem straight away.


Re: problem with Timers :\ ? - pmk1 - 06.09.2010

ya it's sure but i don't know what i should show... xD i have connectnpc and settimer lol


Re: problem with Timers :\ ? - iggy1 - 06.09.2010

Probably best showing OnGameModeInit (im guessing thats the callback used for your npc's/timers) if not whatever callback is used.


Re: problem with Timers :\ ? - pmk1 - 06.09.2010

here:
Код:
public OnGameModeInit()
{

	new id;
   	ShowPlayerMarkers(1);
	ShowNameTags(1);
	UsePlayerPedAnims();
	SetGameModeText("The MAdhouse DM v1.0b");
	SendRconCommand("mapname Las Venturas (LV No Limits)");
  /////////////////////////////////NPCS////////////////////////////////////
	ConnectNPC("MAdBitch","MAdbitch");
/////////////////////////////////////////////////////////////////////////

	   // Players
	for (id = 0; id <= 299; id++) {
	if (id == 265) id = 274; // Skip over the bad ones
	AddPlayerClass(269,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1); // LV Base spawn
              //and much others
	}


	AddStaticVehicle(563,1619.8687,1262.4503,11.5252,62.2300,1,6);
              //and much others


///////////////////////////////////////////TIMERS/////////////////////////////////////
	SetTimer("SendMSG", 60000, true);                                              //
	SetTimer("SendMSG2", 90000, true);
	SetTimer("Speedometer", 100, true);
	SetTimer("InteriorCheck", 3000, true);
////////////////////////////////////////////////////////////////////////////////


	return 1;
}



Re: problem with Timers :\ ? - nissan123 - 06.09.2010

Pmk1 Did You Came In My Server If You Did Please Come In Again I Will Show You The Problem


Re: problem with Timers :\ ? - pmk1 - 06.09.2010

yes it was me, open it and ill go see right now.....

btw/ bump bump bum bum bummmmmmmmmmp any one knows what my problem is?


Re: problem with Timers :\ ? - pmk1 - 12.09.2010

bummmmmp did anyone already had my problem? my timers don't run if i conenct a npc..... what could be the problem?


Re: problem with Timers :\ ? - pmk1 - 14.09.2010

bump.....