Hey dudes
I know that there are not the right place to post this type of problem but in the LUA Forum they don't help a lot lol and my doubt is kinda simple i guess
I'll try to explain:
in the code above im trying to make the "localmonster" be like a word and a diferent number at the final, like monster12 or monster40, the number will be the player ID but I don't know how to do that, i tryed many things like:
or
none of them works lol
here is the code
I know that there are not the right place to post this type of problem but in the LUA Forum they don't help a lot lol and my doubt is kinda simple i guess
I'll try to explain:
in the code above im trying to make the "localmonster" be like a word and a diferent number at the final, like monster12 or monster40, the number will be the player ID but I don't know how to do that, i tryed many things like:
Code:
localmonster = 'playersummon(getPlayerGUID(cid))'
Code:
localmonster = (playersummon(getPlayerGUID(cid)))
here is the code
Code:
function onSay(cid, words, param)
localmonster = (playersummon(getPlayerGUID(cid)))[/
doRemoveCreature(localmonster)
localmonster = doSummonCreature("Rat", getPlayerPosition(cid))
doConvinceCreature(cid, localmonster)
end