|
|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
% \* t6 h, B( ^2 d( N# N! k: {- q2 H' S5 e
if( IsValidObj( pLeader ) )
+ B$ J4 v7 ^! W+ `3 C {% P+ A9 I U# R4 N+ I
if( uMember > 0 )
+ Q. `, F; {6 E. ~, ]% R {
7 C% ?% x/ S$ r2 e6 \5 W
; c! q/ I" U' P- }& N
0 O7 J7 D7 T5 o) x9 [; t* U4 r" T9 P; v* `/ z4 f# f# W$ l
替换为
( i- r4 S# ^0 `! w/ i if (uMember == 0)
! k6 f% M; x/ S; w {
) s9 x: z# \4 X //没找到名字,将szMemberName当id使用; n/ \9 \! l) m
u_long uId = (u_long)atoi(szMemberName);
; t- a6 t' h6 } ? if (uId > 0)# J5 e4 o( ^+ Z& r. @+ H
{
, H. B2 a F, ~% E: K8 ] PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);0 h. S: x) T, _9 x' ?
if (pData)
7 ~. m- v3 Q% x; Z {: S9 R/ X* d% e1 V. A- \
uMember = uId;8 [# G m' F9 |* s8 L% m
strcpy(szMemberName,pData->szPlayer);
; Q; i0 d2 m3 L C0 _0 G9 ~# h }
Y& p" w5 n0 H }2 g& ~/ B8 m! Z0 ?, j# S9 r- m
( F/ v/ Q) J7 l9 \5 [; X. [8 ~
}
" A6 C5 m2 U' f. q5 b/ e //////////////////////////////////////////////////////////////////////////' w N; d1 L3 \4 x
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid ); 3 Y* G P/ A! V8 Z5 n; ^
4 _ z% l; r+ d/ z8 T# [
if( IsValidObj( pLeader ) )
$ q, Y! U" ]5 {( k/ z {4 b* G; s, G& \: y" V' ^* s
if( uMember > 0 )
. G& S' e1 g P4 f0 T1 l {
W2 W, f# l0 z if (pLeader->m_idPlayer == uMember)' F; L* H: g7 ?* d. T6 @& D# D
{
8 A! k6 P7 R& e* R* \, }! Q6 O3 g return;: R% l! T+ X# F8 _% X7 d3 y
}
( o8 a' p, K) ], O9 o% O. j6 `6 F/ o# t6 c8 p
|
|