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: Invalid Function or declaration (
/showthread.php?tid=641454)
Invalid Function or declaration -
FizzyWalshy - 16.09.2017
Error lines help me please
Код:
C:\Users\p\Desktop\CNR\gamemodes\Test.pwn(656) : error 010: invalid function or declaration
C:\Users\p\Desktop\CNR\gamemodes\Test.pwn(658) : error 010: invalid function or declaration
C:\Users\p\Desktop\CNR\gamemodes\Test.pwn(660) : error 010: invalid function or declaration
Код:
Timer:ServerTimer[1000]()//Line 656
{
foreach(Player, i)//Line 658
{
if(MW == 1)//Line 660
{
SetPlayerMarkerForPlayer(i, MWPlayer, COLOR_RED);
}
}
}
Re: Invalid Function or declaration -
JesterlJoker - 16.09.2017
Are you probably using the latest YSI includes if yes
then calling out timers would be like this
PHP код:
task Update[time]()
{
//do something here
return 1;
}
if not then what include version is it?
Re: Invalid Function or declaration -
FizzyWalshy - 16.09.2017
Fixed i forgot to put a #include <YSI\y_timers> in top of my GM