|
Frenzzy
|
 |
« 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
|
 |
« Reply #1 on: June 17, 2011, 03:34:05 PM » |
|
what do you mean by place? statistics doesnt deal with rankings
|
|
|
|
|
Logged
|
 DarkEnergy
|
|
|
|
Frenzzy
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #5 on: June 21, 2011, 01:10:11 PM » |
|
yes, but your application needs to retrieve it asyncronously
|
|
|
|
|
Logged
|
 DarkEnergy
|
|
|
|