Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 10:35:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: War3Statistics API  (Read 467 times)
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« on: June 10, 2011, 10:35:33 PM »

Can you add to War3Interface like this native from War3Source_Engine_Statistics?

native War3_GetClientPlace(client);

..and maybe you can add some other useful natives from stats engine.
« Last Edit: June 11, 2011, 12:25:56 AM by Frenzzy » Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #1 on: June 17, 2011, 03:34:05 PM »

what do you mean by place? statistics doesnt deal with rankings
Logged

DarkEnergy
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #2 on: June 17, 2011, 10:16:02 PM »

I mean the player place(rank) in war3stats.

if (War3_GetClientPlace(client) <= 10) {
    War3_ChatMessage(client, "You are in Top10!");
}
Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #3 on: June 21, 2011, 12:23:24 PM »

are you sure?
1 getting the rank is asynchronous, you have to use a callback
2 getting the rank reads the entire database which takes a while
Logged

DarkEnergy
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #4 on: June 21, 2011, 01:07:23 PM »

When a player say war3rank, to him shows this in chat:

"[War3Source] Ranked {place} of {amount of players}"

I just want to get this {place} for our race(s)/addon(s).
..can return -1 if failed to get a place.
Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #5 on: June 21, 2011, 01:10:11 PM »

yes, but your application needs to retrieve it asyncronously
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!