Wysłany: 2021-11-06, 18:31
Grajeczek
Wiek: 26 Na forum: 1678 dni Posty: 2
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 ( "✘ #FFFFFFNie posiadasz wymaganej reputacji. (2500 SRP)" , localPlayer , 255 , 0 , 0 , true )
elseif hajs < 250000 then
return outputChatBox ( "✘ #FFFFFFNie posiadasz wymaganej got?wki. (250,000$)" , localPlayer , 255 , 0 , 0 , true ) then
takePlayerMoney ( localPlayer , 250000 ) then
outputChatBox ( "✓ #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'
Wysłany: 2021-11-06, 18:51
xyzzz^
A nic
Wiek: 18 Na forum: 1993 dni Posty: 319
Nick w MP: Aspyk21
Piwa : 308
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 ( "✘ #FFFFFFNie posiadasz wymaganej reputacji. (2500 SRP)" , localPlayer , 255 , 0 , 0 , true )
elseif hajs < 250000 then
return outputChatBox ( "✘ #FFFFFFNie posiadasz wymaganej got?wki. (250,000$)" , localPlayer , 255 , 0 , 0 , true )
else
takePlayerMoney ( localPlayer , 250000 ) then
outputChatBox ( "✓ #FFFFFFZakupi?e?/a? bro? AK-47" , localPlayer , 71 , 122 , 0 , true )
triggerServerEvent ( "ak47" , localPlayer )
end
end
end
end )
Wysłany: 2021-11-06, 19:04
Grajeczek
Wiek: 26 Na forum: 1678 dni Posty: 2
"xyzzz^" napisał/a :
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 ( "✘ #FFFFFFNie posiadasz wymaganej reputacji. (2500 SRP)" , localPlayer , 255 , 0 , 0 , true )
elseif hajs < 250000 then
return outputChatBox ( "✘ #FFFFFFNie posiadasz wymaganej got?wki. (250,000$)" , localPlayer , 255 , 0 , 0 , true )
else
takePlayerMoney ( localPlayer , 250000 ) then
outputChatBox ( "✓ #FFFFFFZakupi?e?/a? bro? AK-47" , localPlayer , 71 , 122 , 0 , true )
triggerServerEvent ( "ak47" , localPlayer )
end
end
end
end )
Problem z end'em znikn??, lecz teraz jest to
DB3: c.lua:156: unexpected symbol near 'then'
Wysłany: 2021-11-07, 09:31
xyzzz^
A nic
Wiek: 18 Na forum: 1993 dni Posty: 319
Nick w MP: Aspyk21
Piwa : 308
usu? then po takePlayerMoney
Tagi: c.lua:137: :: end :: expected :: (to :: close :: line :: 133) :: near
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: