function checkAllNicksOfPlayer(who, cmd, playah)
local targetPlayer = getPlayerFromNamePart(playah) -- searching player from name part so we dont need to write all the name
if not targetPlayer then
outputChatBox("this player does not exist", who)
else
local targetSerial = getPlayerSerial(targetPlayer) -- getting serial to check the db
local searchForANicks = executeSQLQuery("SELECT `nicks` from `aliases` WHERE `serial`=?", targetSerial) -- checking
if #searchForANicks > 0 then -- we found player
outputChatBox("#FFD330History of nicks for "..getPlayerName(targetPlayer)..":#FAFAFA "..searchForANicks[1].nicks, who, 0, 0, 0, true) -- show message to command executor with player nicks history
else
outputChatBox("#FFD330This player doesnt have a nick history (Which mean problem with your sqlite db...)", who, 0, 0, 0, true)
end
end
end
as always debugscript 3 then try. if you got This player doesnt have a nick history (Which mean problem with your sqlite db...) then send me your registry.db (better on the pm)
#edit: i just gave it to my friends and it works fine for them