SA-MP Forums Archive
error 025 : need help - 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: error 025 : need help (/showthread.php?tid=549534)



error 025 : need help - Witnec - 07.12.2014

(332) : error 025: function heading differs from prototype^

the lines :

Код:
stock UpdateKartLabel()
{
	new string[256]; // line 332
	if(kartraceinfo[3] == 2) format(string, sizeof(string), "{FFFF00}Race in progress!\nRacers: {FF0000}%d\nTime left: %d seconds", kartraceinfo[0], kartraceinfo[5]-gettime());
	else format(string, sizeof(string), "{FFFF00}Type {FF0000}/kartrace {FFFF00}to join in!\nRacers: {FF0000}%d", kartraceinfo[0]);
	UpdateDynamic3DTextLabelText(karttext, 0xFFFFFFFF, string);
}



Re: error 025 : need help - Vince - 07.12.2014

Check the file it is referring to, because the line you marked is not a function header.


Re: error 025 : need help - s0nic - 07.12.2014

If you would have read the whole warning it will reference you to the streamer include.
If you went to those lines in the streamer include it would refer to OnPlayerDisconnect
In this fair filterscript go ahead and add "reason" to the OnPlayerDisconnect callback as it is missing it..


Re: error 025 : need help - Witnec - 07.12.2014

thanks sonic i didn't realise it was from the streamer include !