warning 213: tag mismatch
#1

After I updated to 0.3e I start to get warning 213: tag mismatch from this stupid code...
Dont know what happend but there got to be something in this code?

Код:
C:\...((2686) : warning 213: tag mismatch
C:\...((2687) : warning 213: tag mismatch
C:\...((2687) : warning 213: tag mismatch
C:\...(2687) : warning 213: tag mismatch
C:\...((2690) : warning 213: tag mismatch
C:\...((2690) : warning 213: tag mismatch
C:\...((2690) : warning 213: tag mismatch
Код:
stock ClosestGasSt(playerid)
{
    new gasid, float:distance=99999.0, float:x, float:y, float:z; LINE 2686
    GetPlayerPos(playerid, x, y, z); LINE 2687
    for(new i=0; i<MAX_FUELSTATIONS; i++)
    {
        new float:tempdist = GetDistanceBetween(x, y, z, stfuelcoords[i][stX], stfuelcoords[i][stY], stfuelcoords[i][stZ]); LINE 2690
        if(tempdist < distance)
        {
        distance = tempdist;
        gasid = i;
        }
    }
    return gasid;
}

stock GetDistanceBetween( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 )
{
    return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) );
}
Reply
#2

As ****** said you need to use
pawn Код:
Float

and not
pawn Код:
float

when declaring your variables.
Reply
#3

Okey, solved thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)