Szerző Téma: /givemoney bug  (Megtekintve 1003 alkalommal)

/givemoney bug
« Dátum: 2014. Október 16. - 09:42:24 »
0
Hello! Valamiért nem müködik a /givemoney se a /setmoney. Mit tegyek?  a Segítségeteket előre köszönöm!
function setMoney(thePlayer, commandName, target, money)
if (exports.global:isPlayerLeadAdmin(thePlayer)) then
   local money = tonumber((money:gsub(\",\",\"\")))
   if not (target) then
      outputChatBox(\"SYNTAX: /\" .. commandName .. \" [Partial Player Nick] [Money]\", thePlayer, 255, 194, 14)
   else
      local username = getPlayerName(thePlayer)
      local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, target)
      if targetPlayer then
         exports.logs:dbLog(thePlayer, 4, targetPlayer, \"SETMONEY \"..money)
         exports.global:setMoney(targetPlayer, money)
         outputChatBox(targetPlayerName .. \" now has \" .. exports.global:formatMoney(money) .. \" $.\", thePlayer)
         outputChatBox(\"Admin \" .. username .. \" set your money to \" .. exports.global:formatMoney(money) .. \" $.\", targetPlayer)
      end
   end
end
end
addCommandHandler(\"setmoney\", setMoney, false, false)
function giveMoney(thePlayer, commandName, target, money)
if (exports.global:isPlayerLeadAdmin(thePlayer)) then
   local money = tonumber((money:gsub(\",\",\"\")))
   if not (target) then
      outputChatBox(\"SYNTAX: /\" .. commandName .. \" [Partial Player Nick] [Money]\", thePlayer, 255, 194, 14)
   else
      local username = getPlayerName(thePlayer)
      local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, target)
      if targetPlayer then
         exports.logs:dbLog(thePlayer, 4, targetPlayer, \"GIVEMONEY \" ..money)
         exports.global:giveMoney(targetPlayer, money)
         outputChatBox(\"You have given \" .. targetPlayerName .. \" $\" .. exports.global:formatMoney(money) .. \".\", thePlayer)
         outputChatBox(\"Admin \" .. username .. \" has given you $\" .. exports.global:formatMoney(money) .. \".\", targetPlayer)
      end
   end
end
end
addCommandHandler(\"givemoney\", giveMoney, false, false)

Nem elérhető Toxic

  • 798
  • #elfújalágyszellő
    • Profil megtekintése
/givemoney bug
« Válasz #1 Dátum: 2014. Október 16. - 09:51:33 »
0
Logban mit ír?

Nem elérhető Xenius

  • 668
    • Profil megtekintése
/givemoney bug
« Válasz #2 Dátum: 2014. Október 16. - 18:10:02 »
0
A hiba oka: Valhalla

Nem elérhető skyLine

  • Globális moderátor
  • 2171
  • 2020
  • Vaterán
    • Profil megtekintése
/givemoney bug
« Válasz #3 Dátum: 2014. Október 16. - 18:54:57 »
0
Azért valami [code*] tagek közé berakhattad volna, mert így elég átláthatatlan.

Nem elérhető Toxic

  • 798
  • #elfújalágyszellő
    • Profil megtekintése
/givemoney bug
« Válasz #4 Dátum: 2014. November 06. - 18:58:42 »
0
[mod]Elavult, zárom.[/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal