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



Timer Problem - Kenway - 16.12.2013

Код:
Timer:MoneyUpdate[1000]() {
	foreach(Player, i)
	{
		if(gPlayerLogged{i})
		{
		    if(PlayerInfo[i][pCash] != GetPlayerMoney(i))
			{
				ResetPlayerMoney(i);
				GivePlayerMoney(i, PlayerInfo[i][pCash]);
			}
		}
	}
}
Eror:

Код:
error 010: invalid function or declaration



Re: Timer Problem - Kenway - 17.12.2013

pump


Re: Timer Problem - TahaAsif12 - 17.12.2013

Which line is the error showing?


Re: Timer Problem - Kenway - 17.12.2013

Quote:
Originally Posted by TahaAsif12
Посмотреть сообщение
Which line is the error showing?
this line

Код:
Timer:MoneyUpdate[1000]() {
	foreach(Player, i)
	{
		if(gPlayerLogged{i})



Re: Timer Problem - Ada32 - 17.12.2013

y_timers syntax changed, you'll now have to do

Код:
timer MoneyUpdate[1000]()
better yet, there's tasks..player tasks (like james bond only worse)

Код:
ptask MoneyUpdate[1000](playerid)



Re: Timer Problem - TahaAsif12 - 17.12.2013

Try the up one^^


Re: Timer Problem - Kenway - 17.12.2013

Yes it is


Re: Timer Problem - Kenway - 17.12.2013

Worked