SA-MP Forums Archive
My Timer doesnt work, Whats the problem? SetTimer.... - 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: My Timer doesnt work, Whats the problem? SetTimer.... (/showthread.php?tid=137959)



My Timer doesnt work, Whats the problem? SetTimer.... - hardstop - 30.03.2010

i have this in the defines place
Код:
forward Glenparkpuu1funktsioon(param1, Float:param2);

I have this in the right place, So please help me whats wrong
Код:
	if(pickupid == GlenparkPuu1)
	{
	SetTimer("Glenparkpuu1funktsioon", 1000, 0);
	}

Код:
public Glenparkpuu1funktsioon(param1, Float:param2)
{
	new playerid;
  printf("%d, %.2f", param1, param2);
  GivePlayerMoney(playerid, 50);
  SendClientMessage(playerid,ROLLIMANGU_TEKST,"Sa alustasid puuraiumisega");

  return 1;
}
when i enter the pickup it prints the things to console but not ingame and it doesnt give money neither whats the problem?