y_hooks error 010: invalid function or declaration - 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: y_hooks error 010: invalid function or declaration (
/showthread.php?tid=502980)
y_hooks error 010: invalid function or declaration -
sarab_singh - 27.03.2014
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
Re: y_hooks error 010: invalid function or declaration -
AhmedMohamed - 27.03.2014
READ THAT WELL!!
https://sampforum.blast.hk/showthread.php?tid=166016
Re: y_hooks error 010: invalid function or declaration -
sarab_singh - 27.03.2014
What didnt understood i already read that
i read more posts by other user then i saw it cant be used with custom callbacks
Re: y_hooks error 010: invalid function or declaration -
Misiur - 27.03.2014
y_hooks works only with builtin samp callbacks. Didn't you mean to use ptask from
y_timers?