Results 1 to 3 of 3

Thread: recent pm com problema

  1. #1
    Banned
    Join Date
    Apr 2013
    Location
    Rio Grande do Sul
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

    recent pm com problema

    Code:
    -- max lines to display at once 
    local maxindex = 20
    -- spacing between lines
    local spacing = 10
    local index = 0
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
    for i=0,qtd do
    if msgs[qtd-i].type == 6
    then
    setfontcolor("cyan")
    addtext(msgs[qtd-i].text, worldwin.left+10,worldwin.top+30+(index*spacing))
    index=index+1
    if index == maxindex then
    break
    end
    end
    end
    Code:
    23:39 : LUA:DoAction:recent-pm: - LuaInterface.LuaScriptException: [string "chunk"]:11: attempt to call global 'setfontcolor' (a nil value)
    o que ha de errado?

  2. #2
    iBot User
    Join Date
    May 2012
    Location
    BRASIL
    Posts
    390
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    54 Post(s)
    Reputation
    13
    Rep Power
    5
    Mude o setfontcolor coloque outra cor tipo setfontcolor("red")


    vendo 300k em amera R$4,00 - mande pm

  3. #3
    Banned
    Join Date
    Apr 2013
    Location
    Rio Grande do Sul
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    ja tentei, mas persiste as vezes do nada, so dando clean no local chat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •