Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: znajdowanie
1. Znajdowanie pozycji myszki.
B??d: c.lua:19: attempt to compare nil with number

function isMouseInPosition(psx,psy,pssx,pssy,abx,aby)
    if 
not isCursorShowing() then return end
    cx
,cy=getCursorPosition()
    
cx,cy=cx*sx,cy*sy
    
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then -- 19 linijka
        
return true,cx,cy
    
else
        return 
false
    end
end

Przyk
?ad wywo?ania:
isMouseInPosition(screenW 0.4656screenH 0.4435screenW 0.0693screenH 0.1130)