Normally this WORKS when you use the right parameters in the game, but if you spell the name wrong then you get an error message in the console.
This is when I use the wrong parameters in the game:
Code:
function onSay(cid, words, param)
if(param ~= "") then
local lCheck = getPlayerByName(param)
doPlayerPopupFYI(cid, ' '..lCheck..' ')
end
end
Code:
Player not found.
Last edited: