Jump to content
  • 0

pomoc 1 eror:(


Guest Ryder14

Dotaz

Prosím jak spravím eror a je to :

C:\DOCUME~1\WAREZB~1\Plocha\Moje\MOJEMO~1\RH.pwn(369) : error 004: function "GetDistanceBetweenPlayers" is not implemented

A mam to nadefinovany a na tom radku 369 mam

 if (GetDistanceBetweenPlayers(playerid,giveplayerid)<10){

Dělal sem si k dealerovy prikaz /nabidni a jen jeden EROR

prosim poradte mi

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

kamkoli do módu :

 

public GetDistanceBetweenPlayers(playerid,giveplayerid)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
new Float:tmpdis;
GetPlayerPos(playerid,x1,y1,z1);
GetPlayerPos(giveplayerid,x2,y2,z2);
tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
return floatround(tmpdis);
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...