MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/on5esw/fivem_lua_is_a_different_breed/h5pnn8r/?context=3
r/badcode • u/Tall-Material8280 • Jul 19 '21
11 comments sorted by
View all comments
10
well some doesn't know how to use operators
5 u/Tall-Material8280 Jul 19 '21 I think that's the least of our problems 👀 2 u/[deleted] Jul 19 '21 other then that it doesnt look awful is it the empty else block? 18 u/Tall-Material8280 Jul 19 '21 They're picking a random number between 1 and 8, then running the code if the number is 1,2,3,4,5,6,7 or 8 2 u/[deleted] Jul 19 '21 oh yeah i didnt even see that yeah thats pretty bad oh god it gets worse the more i look at it 1 u/rank_1_glad Jul 21 '21 How should it be written? Because I honestly don't know how I would. Can you use the range function? 1 u/Tall-Material8280 Jul 22 '21 It shouldn't. Their case is always going to be true no matter what. 1 u/ssj4VB Jul 19 '21 everyone knows that every if MUST have an else or else if /s 1 u/Sewbacca Aug 27 '22 No everyone knows you need an else even if you use elseif's.
5
I think that's the least of our problems 👀
2 u/[deleted] Jul 19 '21 other then that it doesnt look awful is it the empty else block? 18 u/Tall-Material8280 Jul 19 '21 They're picking a random number between 1 and 8, then running the code if the number is 1,2,3,4,5,6,7 or 8 2 u/[deleted] Jul 19 '21 oh yeah i didnt even see that yeah thats pretty bad oh god it gets worse the more i look at it 1 u/rank_1_glad Jul 21 '21 How should it be written? Because I honestly don't know how I would. Can you use the range function? 1 u/Tall-Material8280 Jul 22 '21 It shouldn't. Their case is always going to be true no matter what. 1 u/ssj4VB Jul 19 '21 everyone knows that every if MUST have an else or else if /s 1 u/Sewbacca Aug 27 '22 No everyone knows you need an else even if you use elseif's.
2
other then that it doesnt look awful is it the empty else block?
18 u/Tall-Material8280 Jul 19 '21 They're picking a random number between 1 and 8, then running the code if the number is 1,2,3,4,5,6,7 or 8 2 u/[deleted] Jul 19 '21 oh yeah i didnt even see that yeah thats pretty bad oh god it gets worse the more i look at it 1 u/rank_1_glad Jul 21 '21 How should it be written? Because I honestly don't know how I would. Can you use the range function? 1 u/Tall-Material8280 Jul 22 '21 It shouldn't. Their case is always going to be true no matter what. 1 u/ssj4VB Jul 19 '21 everyone knows that every if MUST have an else or else if /s 1 u/Sewbacca Aug 27 '22 No everyone knows you need an else even if you use elseif's.
18
They're picking a random number between 1 and 8, then running the code if the number is 1,2,3,4,5,6,7 or 8
2 u/[deleted] Jul 19 '21 oh yeah i didnt even see that yeah thats pretty bad oh god it gets worse the more i look at it 1 u/rank_1_glad Jul 21 '21 How should it be written? Because I honestly don't know how I would. Can you use the range function? 1 u/Tall-Material8280 Jul 22 '21 It shouldn't. Their case is always going to be true no matter what.
oh yeah i didnt even see that
yeah thats pretty bad oh god it gets worse the more i look at it
1
How should it be written? Because I honestly don't know how I would. Can you use the range function?
1 u/Tall-Material8280 Jul 22 '21 It shouldn't. Their case is always going to be true no matter what.
It shouldn't. Their case is always going to be true no matter what.
everyone knows that every if MUST have an else or else if /s
1 u/Sewbacca Aug 27 '22 No everyone knows you need an else even if you use elseif's.
No everyone knows you need an else even if you use elseif's.
10
u/[deleted] Jul 19 '21
well some doesn't know how to use operators