It's solved now, this is how the script is now working 100%
function onSay(cid, words, param)
local ranks = {
['fist'] = {0},
['club'] = {1},
['sword'] = {2},
['axe'] = {3},
['distance'] = {4},
['shield'] = {5},
['fish'] = {6},
['magic'] = {7},
['level'] = {8}
}
local msg = string.lower(param)...