Error 017
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
IsPlayerInSphere is defined in the uf.inc (Useful Functions)

pawn Код:
stock IsPlayerInSphere(playerid,Float:x1,Float:y1,Float:z1,Float:radius)
{
    new Float:xs,Float:ys,Float:zs;
    GetPlayerPos(playerid,xs,ys,zs);
    return (GetDistanceBetweenPoints(xs,ys,zs,x1,y1,z1)<=radius);
}

stock Float:GetDistanceBetweenPoints(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2) //By Gabriel "Larcius" Cordes
{
    return floatadd(floatadd(floatsqroot(floatpower(floatsub(x1,x2),2)),floatsqroot(floatpower(floatsub(y1,y2),2))),floatsqroot(floatpower(floatsub(z1,z2),2)));
}
But why don't you just use IsPlayerInRangeOfPoint function which is native in SA-MP. It does pretty much the same thing.
I need just fix this line , just fix it and send me okay please?

http://pastebin.com/uYfxBeUa
Reply


Messages In This Thread
Error 017 - by salev13 - 24.03.2014, 12:28
Re: Error 017 - by CharlieSanchez - 24.03.2014, 13:02
Re: Error 017 - by salev13 - 24.03.2014, 13:08
Re: Error 017 - by Konstantinos - 24.03.2014, 13:10
Re: Error 017 - by salev13 - 24.03.2014, 13:14
Re: Error 017 - by Konstantinos - 24.03.2014, 13:24
Re: Error 017 - by salev13 - 24.03.2014, 13:33
Re: Error 017 - by CharlieSanchez - 24.03.2014, 13:38
Re: Error 017 - by salev13 - 24.03.2014, 13:58
Re: Error 017 - by Konstantinos - 24.03.2014, 13:58

Forum Jump:


Users browsing this thread: 1 Guest(s)