Timer Problem
#1

Код:
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
Reply
#2

pump
Reply
#3

Which line is the error showing?
Reply
#4

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

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

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)
Reply
#6

Try the up one^^
Reply
#7

Yes it is
Reply
#8

Worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)