13.07.2008, 21:15
well never had that happen with a stock myself but maybe try moving
to the top of the script will fix the problem, better yet, make a new text file, paste the above into it, save the file as a .inc, and add the include line for the file to the top, if you dont understand that then just put it at the top 
Good luck
regards orph
Код:
stock Float:GetDistanceBetweenPlayers(playerid, giveplayerid) { new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; GetPlayerPos(playerid,x1,y1,z1); GetPlayerPos(giveplayerid,x2,y2,z2); return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)); }

Good luck
regards orph