mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed Sytax errors
This commit is contained in:
@@ -144,7 +144,7 @@ function left._left.toggle(event)
|
|||||||
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
||||||
else open = {gui.unauthorized} end
|
else open = {gui.unauthorized} end
|
||||||
end
|
end
|
||||||
else open == err end
|
else open = err end
|
||||||
else
|
else
|
||||||
if is_type(Ranking,'table') and Ranking._presets and Ranking._presets().meta.rank_count > 0 then
|
if is_type(Ranking,'table') and Ranking._presets and Ranking._presets().meta.rank_count > 0 then
|
||||||
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
||||||
@@ -157,7 +157,7 @@ function left._left.toggle(event)
|
|||||||
left.style.visible = false
|
left.style.visible = false
|
||||||
end
|
end
|
||||||
if open == false then player_return({'gui.cant-open-no-reason'},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'}
|
if open == false then player_return({'gui.cant-open-no-reason'},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'}
|
||||||
else open ~= true then player_return({'gui.cant-open',open},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'} end
|
elseif open ~= true then player_return({'gui.cant-open',open},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'} end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- draws the left guis when a player first joins, fake_event is just because i am lazy
|
-- draws the left guis when a player first joins, fake_event is just because i am lazy
|
||||||
|
|||||||
Reference in New Issue
Block a user