SA-MP Forums Archive
Bug -.- - 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: Bug -.- (/showthread.php?tid=134105)



Bug -.- - DarkPower - 15.03.2010

I have church on my server mode and when player type /Pray he need to w8 30 sec and when 30sec gone he get 100$ and unfreez and that work but when somebody else type /pray he dont get unfreeze and i get money not him -.- can anyone help me?

HERE IS THE CODE

Код:
if(strcmp("/moli", cmdtext, true) == 0)
	{
		if(PlayerToPoint(5.0,playerid,2490.2896,918.3433,11.0234))
	    {
	    SendClientMessage(playerid, 0xFF0005FF,"Pricekaj 30 sekundi da se pomolis....");
	    TogglePlayerControllable(playerid,0);
      SetTimer("Molitva", 30000, false);
}
    return 1;
}
<<< /PRAY COMMAND

Код:
public Molitva(playerid)
{
  SendClientMessage(playerid,0x00FF0AFF,"Pomolio si se i dobio 100$ nagrade....");
  GivePlayerMoney(playerid,100);
  TogglePlayerControllable(playerid,1);
  return 1;
}
<<< TIMER

can anyone say me where is the problem....


Re: Bug -.- - Jeffry - 15.03.2010

Try this:

pawn Код:
SetTimerEx("Molitva", 30000, false, "d",playerid);
Hope it works. Didnt test it.


Re: Bug -.- - DarkPower - 15.03.2010

tny alot it work now


Re: Bug -.- - Jeffry - 15.03.2010

Quote:
Originally Posted by DarkPower
tny alot it work now
No problem. Thats why we are here.