飞飞世界论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 13375|回复: 0
打印 上一主题 下一主题

ID系统

[复制链接]

197

主题

203

帖子

1084

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1084
QQ
跳转到指定楼层
楼主
发表于 2016-1-10 03:18:12 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
        CUser* pLeader        = g_UserMng.GetUserByPlayerID( uLeaderid );       
( ?& y' `& N3 h  q8 A5 ~" V" `7 ?6 F/ b& l0 [7 y
        if( IsValidObj( pLeader ) )0 k5 e( }4 F1 A; S
        {. C0 @8 I- ?- R( K
                if( uMember > 0 )
5 t2 i9 B! ]8 @# S# m1 P                {
+ T3 t& E# Q! I# v% S
$ {# ?0 w! o1 q  e' {) ]1 ^, x$ Z3 o6 j' y; o
9 x/ i5 n( l$ |+ C( ~. i3 U
替换为
& c0 x+ I; M9 t1 g4 o        if (uMember == 0)
8 J+ l$ m2 G. q. n        {
& P* n8 P, B& t/ [% d( M/ c  w                //没找到名字,将szMemberName当id使用, o8 s3 i0 X' q; J& Z( C
                u_long uId = (u_long)atoi(szMemberName);
. l, s' t" w& o6 Q- L7 O                if (uId > 0)
- k1 Y: T/ g' `0 ?                {" |7 s" t9 }0 j- M
                        PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);% N* k8 `2 d$ H$ p9 U2 V& P
                        if (pData)$ q$ \2 N5 V9 C# V
                        {
8 h0 H+ l' _: S. j* g                                uMember = uId;
1 `6 z) A  P2 p0 S                                strcpy(szMemberName,pData->szPlayer);: w/ s1 t1 U6 a
                        }8 V$ f6 t& c5 @1 T' s: V
                }) Q: a+ |+ Q& j2 [) e: |1 n( j
                7 E& A, r, L1 l1 y$ a5 P/ g
        }6 s/ n4 c/ c1 i7 j1 w+ D
        //////////////////////////////////////////////////////////////////////////
& i* O* R+ M) p" R9 @1 O5 ]: e8 @  E        CUser* pLeader        = g_UserMng.GetUserByPlayerID( uLeaderid );        0 L5 f( Y* c6 }9 E( e* f! T

" U5 {4 f% [6 U# `        if( IsValidObj( pLeader ) )2 X# O) {- G. ~) a, _! Z" ^
        {& T3 k& I6 \. ~; a
                if( uMember > 0 )( K: _2 X. b# x3 Z9 `: r
                {
9 l, U! E/ J# U" ?& O! b                        if (pLeader->m_idPlayer == uMember)
3 ?. t- l( i2 D8 G7 k                        {
# P" U% I8 k  R, d$ J                                return;
& B* L) |* j1 }. [0 f                        }
, C) ^9 q6 D+ d% @
# N* |) H1 D: G+ e/ X
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|飞飞世界技术论坛  

GMT+8, 2025-11-10 21:53 , Processed in 0.071875 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表