wtf, try now:
<event type = "look" name = "ranksLook" event = "script"><![CDATA[
domodlib("ranks")
function onLook(cid, thing, position, lookDistance)
if(isPlayer(thing.uid)) then
local str = ""
local rank = {rank = "Private", frags = 0}
for k, v in...