Errors and warnings when I try to compile the gamemode
#1

Hello, when I try to compile my gamemode, I get these errors and warnings:
error 025: function heading differs from prototype
error 021: symbol already defined: "GetXYInFrontOfPlayer"
warning 203: symbol is never used: "command"
warning 203: symbol is never used: "text22"


Any ideas? Anyone can help with TeamViewer?

P.S. It's about samp 0.3z R3
Reply
#2

Quote:
Originally Posted by bobsona
Посмотреть сообщение
Hello, when I try to compile my gamemode, I get these errors and warnings:
error 025: function heading differs from prototype
error 021: symbol already defined: "GetXYInFrontOfPlayer"
warning 203: symbol is never used: "command"
warning 203: symbol is never used: "text22"


Any ideas? Anyone can help with TeamViewer?

P.S. It's about samp 0.3z R3
First of all, Never post only The Errors, The pawno gives you Errors with the lines and we can never know what is in that lines.
Код:
error 025: function heading differs from prototype
We must see the function, Propably you have it defined somewhere in the GameMode or in the includes.
Код:
error 021: symbol already defined: "GetXYInFrontOfPlayer"
The symbole GetXYInFrontOfPlayer is already defined, Use Ctrl+F to search it, Keep only one and delete the other one.
Код:
warning 203: symbol is never used: "command"
warning 203: symbol is never used: "text22"
You have defined those symbols but you are not using them, Delete both of them.
Reply
#3

Please post the line where you got this error

error 025: function heading differs from prototype
Reply
#4

My mistake, sorry!

error 025: function heading differs from prototype (This is the first line of the code)
error 021: symbol already defined: "GetXYInFrontOfPlayer" (This is the second line of the code)
Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x2, &Float:y2, Float:distance)
{
	new Float:a;

	GetPlayerPos(playerid, x2, y2, a);
	GetPlayerFacingAngle(playerid, a);

	if(GetPlayerVehicleID(playerid))
	{
		GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
	}

	x2 += (distance * floatsin(-a, degrees));
	y2 += (distance * floatcos(-a, degrees));
}

warning 203: symbol is never used: "command"
warning 203: symbol is never used: "text22"


These two errors are at the bottom of the gamemode... there is only a comment line:
Код:
//----------------------------------------------------------------------------//
Reply
#5

Symbol is never used means that you defined it but you never used it so Use CTRL+F to find it in your script then delete it. and for the other error, try to remove that stock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)