Jump to content
  • 0

pomoc Error... xD .. ale že jaký


eLko

Dotaz

KKs aha aký mi vyhodilo error ...

Teda 2

C:\Users\FuuuCK\Desktop\Programovanie\My Gamemodes\zamestnania.pwn(15) : error 017: undefined symbol "newkeys"

C:\Users\FuuuCK\Desktop\Programovanie\My Gamemodes\zamestnania.pwn(16) : error 017: undefined symbol "IsPlayerInSphere"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

2 Errors.

 

Čo mám s tým robiť?

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

undefined isplayerinsphere vyřeš tímto

 

IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
{
if(GetPlayerDistanceToPointEx(playerid,x,y,z) < radius){
return 1;
}
return 0;
}

GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z)
{
new Float:x1,Float:y1,Float:z1;
new Float:tmpdis;
GetPlayerPos(playerid,x1,y1,z1);
tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2)+floatpower(floatabs(floatsub(z,z1)),2));
return floatround(tmpdis);
}

 

A že ti to píše undefined symbol new_keys tak asi nějaký příkaz co chceš na klávesu si dal do OnPlayerKeyStateChange(playerid, newkeys, oldkeys)a ne do OnPlayerStateChange(playerid, newstate, oldstate)

Link to comment
Share on other sites

  • 0

hod sem co mas v publicu : public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

a pokud ti stale nejde IsPlayerInSphere zkopiruj mezi define tohle :

#define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...