error 025 : need help
#1

(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);
}
Reply
#2

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

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..
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)