Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → hash for clantag / shortname ?

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 2

1 (edited by anonbyte 08.11.2014 20:05)

Topic: hash for clantag / shortname ?

harpywar how to get shortname for Clan,
i create test clan
/clan create UNIX United Clan of Executive
UNIX                  United Clan of Executive

its save in database
cid            short                            name                             
1              1431193944                 United Clan of Executive

1431193944     it's should UNIX , why its save to int ?
how can i get clantag string

2

Re: hash for clantag / shortname ?

wikiservia.org/index.php?title=PvPGN%3AClantag

function str_to_clantag($int)
{
    $str = pack("N", $int);
    if ($find = strpos($str, "\0"))
        $str = substr($str, 0, $find);

    return $str;
}
Do not ask for support in PM.

Posts: 2

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 → hash for clantag / shortname ?



Generated in 0.052 seconds (75% PHP - 25% DB) with 20 queries