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: c.lua:137:
1. c.lua:137: 'end' expected (to close 'if' at line 133) near '
Witam czego nie zamkn??em?

addEventHandler("onClientClick", root, function(btn,state)
    
local screenW, screenH = guiGetScreenSize()
    if 
btn=="left" and state=="down" then
        
if isMouseIn(469, 311, 119, 48)  then
            
if getElementData( localPlayer, "player:srp" ) < 2500 then
                
return outputChatBox("&#10008; #FFFFFFNie posiadasz wymaganej reputacji. (2500 SRP)", localPlayer, 255, 0, 0, true)
            
                elseif 
hajs < 250000 then
                  
return outputChatBox("&#10008; #FFFFFFNie posiadasz wymaganej got?wki. (250,000$)", localPlayer, 255, 0, 0, true) then
                    takePlayerMoney
(localPlayer,250000) then
                    outputChatBox
("&#10003; #FFFFFFZakupi?e?/a? bro? AK-47", localPlayer, 71, 122, 0, true)
                    
triggerServerEvent("ak47", localPlayer, function()
                
end
            end
        end
    end
end
)


DB3: c.lua:137: 'end' expected (to close 'if' at line 133) near 'then'