16.12.2011, 12:47
i need your help guys look i got this error i guess i added it in the correct place of stock's
check pic
check pic
Код:
stock PlayerToPoint(playerid,Float:radi, Float:px, Float:py, Float:pz) { if(IsPlayerConnected(playerid)) { new Float:x, Float:y, Float:z; new Float:ox, Float:oy, Float:oz; GetPlayerPos(playerid, ox, oy, oz); x = (ox -px); y = (oy -py); z = (oz -pz); if (((x < radi) && (x > -radi)) && ((y < radi) && (y > -radi)) && ((z < radi) && (z > -radi))) return 1; } return 0; }
