Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → help,how to make this

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 4

1

Topic: help,how to make this

how to make this account_get_ums in account.wrap.cpp ??

based on game type mapset

for example in command.cpp

         /*      snprintf(msgtemp, sizeof(msgtemp), "Sc-UMS: %u",
                    account_get_ums(player,clienttag); //función UMS
             message_send_text(c,message_type_info,c,msgtemp); */

exemple /stats dante

normal ladder: 0-0-0
ladder games 0-0-0
ums: 0

thanks for you help,regards

2

Re: help,how to make this

How do you want to rank UMS maps? Just a count of all UMS games?

Do not ask for support in PM.

3

Re: help,how to make this

HarpyWar wrote:

How do you want to rank UMS maps? Just a count of all UMS games?

yeah Just a count of all UMS games

4

Re: help,how to make this

Add handler in game.cpp > game_report to increase ums counter.
Check "game->type" there. I guess, game_type_mapset is UMS game type.

Use account_set_numattr/account_get_numattr in your wrapper functions account_set_ums/account_get_ums.
Something like this (see examples in account_wrap.cpp):

account_set_numattr(account, "Record\\SEXP\\1\\ums_counter", counter))
account_get_numattr(account, "Record\\SEXP\\1\\ums_counter"))
Do not ask for support in PM.

Posts: 4

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → help,how to make this



Generated in 0.077 seconds (77% PHP - 23% DB) with 20 queries