You can try it, but i'm not sure it will work. I am 90% sure it won't.
function onAdvance(cid, skill, oldLevel, newLevel)
if getPlayerSkillLevel(cid, 1) or getPlayerSkillLevel(cid, 2) or getPlayerSkillLevel(cid, 3) or getPlayerSkillLevel(cid, 4) or getPlayerSkillLevel(cid, 5) or...