SA-MP Forums Archive
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: Tag mismatch (/showthread.php?tid=622069)



Tag mismatch - Nin9r - 18.11.2016

I receive tag mismatch warning on the line:

Код HTML:
Distance[3] = GetDistanceBetweenPoints(Positionx[0],Positionx[1], Positionx[2], -1417.0,-295.8,14.1);
above lines:

Код HTML:
new Float: Positionx[5];
new string1[256];
GetPlayerPos(playerid, Positionx[0], Positionx[1], Positionx[2]);
stock:
Код HTML:
stock Float: GetDistanceBetweenPoints(Float:posx1,Float:posy1,Float:posz1,Float:posx2,Float:posy2,Float:posz2)
{
    return floatsqroot(floatpower(floatabs(floatsub(posx2,posx1)),2)+floatpower(floatabs(floatsub(posy2,posy1)),2)+floatpower(floatabs(floatsub(posz2,posz1)),2));
}



Re: Tag mismatch - GoldenLion - 18.11.2016

Is that "Distance" a float?

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
stock:
Код HTML:
stock Float: GetDistanceBetweenPoints(Float:posx1,Float:posy1,Float:posz1,Float:posx2,Float:posy2,Float:posz2)
{
    return floatsqroot(floatpower(floatabs(floatsub(posx2,posx1)),2)+floatpower(floatabs(floatsub(posy2,posy1)),2)+floatpower(floatabs(floatsub(posz2,posz1)),2));
}
https://sampforum.blast.hk/showthread.php?tid=570635


Re: Tag mismatch - Nin9r - 18.11.2016

So, do I need to change stock with public for all the stocks in gamemode?