Warning on tag mismatch, Help!!! [REP +]
#1

I had make this command
Код:
COMMAND:Car(playerid,params[])
{
	SendAdminText(playerid, "/Car", params);
	if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 5)
	{
    	new Broj, Boja1, Boja2;
		if(sscanf(params, "iii", Broj, Boja1, Boja2)) return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}Komanda:{FF0000} {FFFFFF}/Car <ID> <Primerna Boja> <Sekundarna Boja> {FFFFFF}");

		new float:X, float:Y, float:Z, float:Kut;
        GetPlayerPos(playerid, X, Y, Z); //line 512
        GetPlayerFacingAngle(playerid, Kut); // line 513 
        new Auto = CreateVehicle(Broj, X, Y, Z, Kut, Boja1, Boja2, 60); /line 514
        PutPlayerInVehicle(playerid, Auto, 0);

		return 1;
	}

	return 0;
}
When i compile it i get warning,
I wanna fix it,
warnings are:
Код:
\pawno\include\PPC_PlayerCommands.inc(512) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(512) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(512) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(513) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(514) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(514) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(514) : warning 213: tag mismatch
\pawno\include\PPC_PlayerCommands.inc(514) : warning 213: tag mismatch
Reply
#2

Change this line:
pawn Код:
new float:X, float:Y, float:Z, float:Kut;
(Line 511)

to this:
pawn Код:
new Float:X, Float:Y, Float:Z, Float:Kut;
As you may have guessed by now, tags, such as 'Float' are indeed case sensitive.
So a simple change from 'float' to 'Float' will fix this error.
Reply
#3

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Change this line:
pawn Код:
new float:X, float:Y, float:Z, float:Kut;
(Line 511)

to this:
pawn Код:
new Float:X, Float:Y, Float:Z, Float:Kut;
As you may have guessed by now, tags, such as 'Float' are indeed case sensitive.
So a simple change from 'float' to 'Float' will fix this error.
Thank you!
you will get rep +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)