Jump to content

Shevzz

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Shevzz

  1. to tentando fazer um set money, que funciona da seguinte forma caso não tenha o argumento "id" seta dinheiro no player que executou o comando caso tenha o argumento "id" seta o dinheiro no player cujo o id foi especificado no comando, porém esta ocorrendo um erro no debug quando executo o comando com ou sem o id, e so esta funcionando quando eu especifico o id no comando codigo e script abaixo: function money(targetPlayer, cmd, id, qnt) setPlayerMoney(targetPlayer, qnt) if (id) then local playerID = tonumber(id) if (playerID) then local targetPlayer = getPlayerID(playerID) if (targetPlayer) then setPlayerMoney(targetPlayer, id, qnt) end end end end addCommandHandler("money", money)
×
×
  • Create New...