Slot1 :
Name - 2017.10.07 00:12 - Hacking
Slot2:
Name 2017.10.07 00:30 - Hacking
How can I switch it around So newest is Slot 1?
If you know how to fix this, please help me. I know its MySQL and some people don't know it but its not the SQL part that is messing it up, the SQL part just gets information.
[doublepost=1499697980,1499642102][/doublepost]bump
Name - 2017.10.07 00:12 - Hacking
Slot2:
Name 2017.10.07 00:30 - Hacking
How can I switch it around So newest is Slot 1?
code_language.skript:
set {_result1::*} to objects in column "bann" from result of query "SELECT `bann` FROM `server_ban`.`history` WHERE uuid = '%{_punished}'s uuid%'" and close
set {_result2::*} to objects in column "by" from result of query "SELECT `by` FROM `server_ban`.`history` WHERE uuid = '%{_punished}'s uuid%'" and close
set {_result3::*} to objects in column "date" from result of query "SELECT `date` FROM `server_ban`.`history` WHERE uuid = '%{_punished}'s uuid%'" and close
set {_result4::*} to objects in column "reason" from result of query "SELECT `reason` FROM `server_ban`.`history` WHERE uuid = '%{_punished}'s uuid%'" and close
set {_slot} to 9
loop {_result1::*}:
set {_amount4} to {_result4::%loop-index%}
set {_amount3} to {_result3::%loop-index%}
set {_amount2} to {_result2::%loop-index%}
set {_amount1} to loop-value-1
if "%{_amount1}%" contains "Chat Offense":
set slot {_slot} of {_executer}'s current inventory to book and quill named "%{_colorTitle2}%Chat Offense" with lore ""
add 1 to {_slot}
if "%{_amount1}%" contains "Hacking":
set slot {_slot} of {_executer}'s current inventory to iron sword named "%{_colorTitle2}%Client Mod" with lore "%{_amount2}% - %{_amount3}% - %{_amount4}%"
add 1 to {_slot}
if {_slot} = 54:
exit loop
[doublepost=1499697980,1499642102][/doublepost]bump
Last edited: