Jump to content
  • 0

Top 3 Player gets custom Aura


Rebel

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Here's my OnPCLoginEvent, im using AnnieRuru Dota PvP Ladder and @aura by Zephyrus ~ 

OnPCLoginEvent:
if ( .maptrigger$ != "all" )
    query_sql("select char_id,name,kills from `pvp_ladder` ORDER BY kills DESC LIMIT 3", .@char_id, .@name$, .@kills);
    for(set .@i,0; .@i < 3; set .@i,.@i+1) {
        if(getcharid(0) == .@kills[.@i]) {
            dispbottom "Congratulations, You're in the Top 3 PVP Players!"; // this line doesn't show after log-in ~ /sob  
            atcommand "@aura "+(.@i+3);
            end;
        }
    }
end;

well its not working and i dont know why.. no error on map console though. any help will be appreciated!

Edited by Rebel
Already fixed. Thanks~
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

if(getcharid(0) == .@char_id[.@i]) {

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...