else if (!DistanceFromPoint(Cosa.x,Cosa.y,player.Pos.x,player.Pos.y) < 10);
cause this error:
comparison between 'bool' and '10'
how to fix?
Fixed:
else if (!(DistanceFromPoint(Cosa.x,Cosa.y,player.Pos.x,player.Pos.y) < 10))
Solved
Just do it like this
local InPlace = DistanceFromPoint(Cosa.x,Cosa.y,player.Pos.x,player.Pos.y) < 10
else if ( !InPlace )
Quote from: [KM]Helathien on Jun 21, 2018, 05:04 PMJust do it like this
local InPlace = DistanceFromPoint(Cosa.x,Cosa.y,player.Pos.x,player.Pos.y) < 10
else if ( !InPlace )
local InPlace = DistanceFromPoint(Cosa.Pos.x, Cosa.Pos.y, player.Pos.x, player.Pos.y) < 10
else if ( !InPlace )
adding Pos
to Cosa