CLEO Help Help with this variable

CLEO related
Status
Not open for further replies.

ZTzTopia

New member
Joined
Dec 29, 2019
Messages
2
Reaction score
0
Location
Indonesia
Code:
0B34: "tinfo" @info_player

:info_player
SAMP.IsCommandTyped(1@)
if 0AD4: 1@ = scan_string 1@ format "%d" 0@
else_jump @NO_ID
if SAMP.IsPlayerConnected(0@)
else_jump @NOTCONNECT

17@ = SAMP.GetActorHandleByPlayerID(0@)
call @GetPlayerData_A 1 by_id 0@ to nick 2@ color 3@ score 4@ ping 5@ $posx $posy $posz distance 6@
0843: get_zone_at $posx $posy $posz nameA_to 7@s
0ADE: 7@ = text_by_GXT_entry 7@s
if
    056D: actor 17@ defined
then
    call @GetPlayerData_B 1 by_id 0@ to health 8@ armour 9@ skin 10@ weap 11@
    call @GetWeaponName 1 by_id $weapid to $weap
    chatmsg "%s(%d) {FFFFFF}> Ping: %d > Score: %d > Health: %d > Armor: %d > Skin: %d > Weapon: %s > Coords: %.2f %.2f %.2f > %s > Distance: %dm" 3@ 2@ 0@ 5@ 4@ 8@ 9@ 10@ 11@ $posx $posy $posz 7@ 6@    
else
    chatmsg "%s(%d) {FFFFFF}> Ping: %d > Score: %d > Coords: %.2f %.2f %.2f > %s > Distance: %dm" 3@ 2@ 0@ 5@ 4@ $posx $posy $posz 7@ 6@
end
SAMP.CmdRet()

:GetPlayerData_A
00A0: $PLAYER_ACTOR to 8@ 9@ 10@
0B2F: 0@ to 5@ 6@ 7@
050A: 11@ = 8@ 9@ 10@ and 5@ 6@ 7@
008E: 11@ = 11@
1@ = SAMP.GetPlayerNickname(0@)
2@ = SAMP.GetPlayerColor(0@)
3@ = SAMP.GetPlayerScore(0@)
4@ = SAMP.GetPlayerPing(0@)
ret 8 1@ 2@ 3@ 4@ 5@ 6@ 7@ 11@

:GetPlayerData_B
0B20: 1@ = 0@
0B25: 2@ 0@
0B26: 3@ 0@
0665: 1@ 4@
0470: 5@ 1@
ret 4 2@ 3@ 4@ 5@

Why i can't use local variable on the coordinat? if i use local it make 0.00 0.00 0.00 if i use global it show the real coordinat player can you help me?
 
Status
Not open for further replies.
Top