Item::IsPointInWaterOrient function is not woking for me.
If water in 3 m of player front it's not detecting.
I use colandreas and it loaded 100%,?I don't know what's wrong.
If water in 3 m of player front it's not detecting.
I use colandreas and it loaded 100%,?I don't know what's wrong.
Code:
if(!PlayerFishing[playerid]) {
? ? if(!Item::IsPointInWaterOrient(playerid,item_player,3.0,o_front)) return 0;
? ? PlayerFishing[playerid] = 1;
? ? GameTextForPlayer(playerid, "~w~Fishing...", 5000, 4);
}