CLEO Help Help call_scm_function

CLEO related
Status
Not open for further replies.

ZTzTopia

New member
Joined
Dec 29, 2019
Messages
2
Reaction score
0
Location
Indonesia
Code:
SAMP.IsCommandTyped(1@)
if 0AD4: 1@ = scan_string 1@ format "%d" 0@
else_jump @NO_ID
call @GetPlayerData_A 1 by_id 0@ to nick 2@ color 3@ score 4@ ping 5@
chatmsg "%s {FFFFFF}> Score: %d > Ping: %d" 3@ 2@ 4@ 5@
SAMP.CmdRet()

:GetPlayerData_A
1@ = SAMP.GetPlayerNickname(0@)
2@ = SAMP.GetPlayerColor(0@)
3@ = SAMP.GetPlayerScore(0@)
4@ = SAMP.GetPlayerPing(0@)
ret 4 1@ 2@ 3@ 4@

It make my gta not responding pls help me i dont understand with this programming language
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
Allocate memory to the "name" var before printing it in chat, also some of that formatting isn't entirely optimal.
 
Status
Not open for further replies.
Top