how can i do that i took a look at FYP screen info code and i included same stuff as him in that code still ping and score shows 0 here full code
Код:
void
renderPlayerInfo
(
)
{
traceLastFunc
(
"renderPlayerInfo()"
)
;
if
(
gta_menu_active
(
)
)
return
;
if
(
cheat_state
->
_generic
.
cheat_panic_enabled
)
return
;
if
(
!
g_dwSAMP_Addr
||
!
g_SAMP
||
!
g_Players
)
return
;
// don't run if the CGameSA doesn't exist
if
(
!
pGameInterface
)
return
;
// don't run if we don't exist
if
(
isBadPtr_GTA_pPed
(
pPedSelf
)
)
return
;
if
(
g_Scoreboard
->
iIsEnabled
)
return
;
for
(
int
i
=
0
;
i
base
.
matrix
[
4
*
3
]
;
player_pos
.
x
=
f_pos
[
0
]
;
player_pos
.
y
=
f_pos
[
1
]
;
player_pos
.
z
=
f_pos
[
2
]
;
CalcScreenCoors
(
&
player_pos
,
&
screenposs
)
;
char
pos
[
256
]
,
ping
[
256
]
,
hparmw
[
256
]
,
pnameid
[
256
]
,
skin
[
256
]
;
if
(
screenposs
.
z
iIsListed
[
i
]
!=
1
)
continue
;
stRemotePlayer
*
pPlayer
=
g_SAMP
->
pPools
->
pPlayer
->
pRemotePlayer
[
i
]
;
const
char
*
playerName
=
getPlayerName
(
i
)
;
if
(
Informer
)
{
_snprintf_s
(
pnameid
,
sizeof
(
pnameid
)
-
1
,
"{C235DD}Player{FFFFFF} %s {00FF00} Distance{FFFFFF} %.0f m"
,
playerName
,
i
,
GetDistance
(
D3DXVECTOR3
(
player_pos
.
x
,
player_pos
.
y
,
player_pos
.
z
)
)
)
;
pD3DFont_sampStuff
->
PrintShadow
(
screenposs
.
x
,
screenposs
.
y
-
38
,
COLOR_WHITE
(
255
)
,
pnameid
)
;
_snprintf_s
(
hparmw
,
sizeof
(
hparmw
)
-
1
,
"{FF0F0F}Health{FFFFFF} %0.0f Armour %0.0f{FFA00F} Weapon{FFFFFF} %u"
,
g_Players
->
pRemotePlayer
[
i
]
->
pPlayerData
->
fActorHealth
,
g_Players
->
pRemotePlayer
[
i
]
->
pPlayerData
->
fActorArmor
,
g_Players
->
pRemotePlayer
[
i
]
->
pPlayerData
->
onFootData
.
byteCurrentWeapon
)
;
//, g_Players->pRemotePlayer[i]->szPlayerName, i);
pD3DFont_sampStuff
->
PrintShadow
(
screenposs
.
x
,
screenposs
.
y
-
26
,
COLOR_WHITE
(
255
)
,
hparmw
)
;
_snprintf_s
(
ping
,
sizeof
(
ping
)
-
1
,
"{F0FF0F}Skin{FFFFFF} %d{00FF00} Ping{FFFFFF} %d Score %d"
,
actor
->
base
.
model_alt_id
,
pPlayer
->
iPing
,
pPlayer
->
iScore
)
;
pD3DFont_sampStuff
->
PrintShadow
(
screenposs
.
x
,
screenposs
.
y
-
14
,
COLOR_WHITE
(
255
)
,
ping
)
;
_snprintf_s
(
pos
,
sizeof
(
pos
)
-
1
,
"Pos X %0.02f Y %0.02f Z %0.02f"
,
player_pos
.
x
,
player_pos
.
y
,
player_pos
.
z
)
;
//, g_Players->pRemotePlayer[i]->szPlayerName, i);
pD3DFont_sampStuff
->
PrintShadow
(
screenposs
.
x
,
screenposs
.
y
,
COLOR_WHITE
(
255
)
,
pos
)
;
}
}
}