tag mismatch warning
#1

i get this warning:warning 213: tag mismatch
how can i fix it?
the code is:
{
new float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health > 900)
{
teise[playerid] = 1;
return 1;
}
Reply
#2

What line is the warning on?
Reply
#3

GetVehicleHealth(veh, health);
if(health > 900)
Reply
#4

Code below seems to compile just fine for me.

pawn Код:
// start of function
{
    new Float:health;
    new veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    if(health > 900)
    {
        teise[playerid] = 1;
        return 1;
    }
    return 1;
}
Reply
#5

Hmm i dont find any error and works fine for me
Reply
#6

Quote:
Originally Posted by karolis11234
Посмотреть сообщение
new float:health;
It should be:
pawn Код:
new Float:health;
with capital F.
Reply
#7

PAWNO is case sensitive which means when you've wrote "float:health" it wont be marked as a "Float" which will return into a tag mismatch.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)