Skip to content

Commit 9bd9021

Browse files
committed
fix(manage-users): correctly display error message when invalid slots are detected
1 parent 93c675a commit 9bd9021

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: lua/ps2/client/tabs/management_tab/manage_users/dpointshopmanageuser_userdetails.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ function PANEL:SetPlayerData( playerData )
296296
PrintTable(self.playerData.slots)
297297
PrintTable(Pointshop2.EquipmentSlots)
298298
KLogf( 2, "A slot with name %s was found in the database, however that slot is unknown ingame.", v.slotName )
299-
LocalPlayer():PS2_DisplayError( "ERROR: Slot in database that is not in game. Please check the console" )
299+
Pointshop2View:getInstance():showRepairDatabase(
300+
Format([[ERROR: You have references to a slot %s in the database that does not exist in game.
301+
This can be fixed by repairing the database, however this will permanently delete the slot and items that are equipped in it for all players.
302+
If you believe the slot should be there please make sure that all of your DLC and Addons are uploaded correctly.
303+
Please contact support if you need more information.
304+
]], v.slotName))
300305
continue
301306
end
302307

0 commit comments

Comments
 (0)