y_hooks error 010: invalid function or declaration
#1

core.inc line no. 7: forward onesectimer();

admin.inc file:
Код:
starting from line no. 48
hook onesectimer()
{
	foreach(Player, i)
	{
		if(PlayerInfo[i][Muted] != 0)
			PlayerInfo[i][Muted]--;
		if(PlayerInfo[i][onsecs] == 60)
		{
			PlayerInfo[i][onsecs] = 0;
			if(PlayerInfo[i][onmins] == 60)
			{
				PlayerInfo[i][onhrs]++;
				PlayerInfo[i][onmins] = 0;
			}
			else
			PlayerInfo[i][onmins]++;
		}
		else
		PlayerInfo[i][onsecs]++;
	}
}
errors
Код:
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/core.inc(7) : error 025: function heading differs from prototype
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(48) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(50) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(52) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(54) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(57) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(62) : error 010: invalid function or declaration
D:\New folder\games\GTA San Andreas\rr\pawno\include\rr/lib/admin.inc(65) : error 010: invalid function or declaration
can anyone tell whats the problem in this
Reply
#2

READ THAT WELL!!
https://sampforum.blast.hk/showthread.php?tid=166016
Reply
#3

What didnt understood i already read that
i read more posts by other user then i saw it cant be used with custom callbacks
Reply
#4

y_hooks works only with builtin samp callbacks. Didn't you mean to use ptask from y_timers?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)