飞飞世界论坛
标题:
ID系统
[打印本页]
作者:
admin
时间:
2016-1-10 03:18
标题:
ID系统
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
9 ?' |) [$ A6 f! f' K
! c6 D8 [& A0 f. ^& s/ u
if( IsValidObj( pLeader ) )
1 Q; B1 b8 ?" [6 j4 [- S
{
5 W# b4 O' {+ ]2 T
if( uMember > 0 )
L( @( V; U$ h# z& l% J+ _
{
8 h# @4 K$ `6 C# G% I: R0 c1 _
+ s2 s) b# K5 S W- ]
9 M/ W1 K: p1 y" c8 s
; ~4 n1 ]! T9 }/ I! S1 _
替换为
! p8 N. [5 c& E: L& l2 k
if (uMember == 0)
. n3 J! |( ^* B" [
{
: B* V, h- d$ X: h" K/ O2 _+ V3 A5 i
//没找到名字,将szMemberName当id使用
0 `) }' T8 z' g( ?0 r7 h" K
u_long uId = (u_long)atoi(szMemberName);
4 x, N2 d. \! p! N7 a I1 x
if (uId > 0)
6 J* m+ b$ o$ w- M0 M
{
$ N, \3 Q- ^; i+ f
PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);
1 \' }# ` c0 I' G
if (pData)
3 Q: A2 k! l7 l! b7 K* R: k
{
' v' J& ]& I9 [7 p
uMember = uId;
. g% K% A: a% x
strcpy(szMemberName,pData->szPlayer);
4 T; _* n0 W) s* V% w
}
h3 p1 o# |$ s1 b; N
}
2 Q- A: S4 b+ P) r. |
8 m6 F: U( A4 i1 D. `- Z! }
}
. \' a1 p2 T# `
//////////////////////////////////////////////////////////////////////////
: x* |2 W8 \: |
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
; l( E/ d( I/ O
! F! K) A, T4 J w7 h
if( IsValidObj( pLeader ) )
i( ^- S5 J u
{
; h; p) y$ u* M7 b" Z8 h4 V
if( uMember > 0 )
2 {" }: S6 Z# k5 K/ m& C
{
% c' a2 w. s7 |" D2 a$ ]: z
if (pLeader->m_idPlayer == uMember)
9 x0 v; T, a$ E" g7 j6 S
{
% N/ N$ j1 q& \! }4 u# z# M
return;
. i% [, \6 A. M+ L/ ]* [
}
" Y9 U1 k$ t# M& d- \7 _$ {7 h
1 G6 e. E) r+ P4 B# e
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2