Results 1 to 1 of 1

Thread: Is anyone good with string types?

  1. #1
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6

    Is anyone good with string types?



    Hello guys, can u help me with a doubt?

    PHP Code:
    local lider 'Kaya Kush Power'
    local presunto 'Luri Canibal'
    local msgs getmessages('Server Log'
    local qtd msgs.count-

    for i=0,qtd 
    do 
        if 
    msgs[qtd].text:find('(.+) loses (%w+) .+ due to an attack by (.+)%.'
        
    then 
    useitemontarget
    ('sudden death rune'presunto)
        
    end 
    end 
    There is any possible that i can atribute the string lider to (.+)%,
    and var presunto to (.+) ?
    L
    lider = leader
    presunto = attacked one
    Thanks in Advance.
    Last edited by mexicowss; 07-03-2012 at 09:14 AM.

Posting Permissions

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