SA-MP Forums Archive
warning 213: tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (/showthread.php?tid=349885)



warning 213: tag mismatch - woaha - 10.06.2012

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 ) ) ) );
}



Re: warning 213: tag mismatch - Dodo9655 - 10.06.2012

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

and not
pawn Код:
float

when declaring your variables.


Re: warning 213: tag mismatch - woaha - 10.06.2012

Okey, solved thanks.