CLEO Help Help the 0@v (string)

CLEO related
Status
Not open for further replies.

a10210319

Active member
Joined
Mar 21, 2014
Messages
38
Reaction score
0
i try to make a send string cmd

0B34: samp register_client_command "say" to_label @TEST

:TEST
SAMP.IsCommandTyped(0@)
if
0AD4: 4@ = scan_string 0@ format "%s" 2@v //IF and SET
then
0AF9: samp say_msg "Say %s" 2@v
end
samp.CmdRet()

but in the game
i try /say 1234567890
the result:
SlJFJTP.jpg

"90" Disappeared
Why?
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
0B34: samp register_client_command "say" to_label @TEST



:TEST
0B35: samp 0@ = get_last_command_params
if
0AD4: 33@ = scan_string 0@ format "%d" 1@ //IF and SET
then
0AF9: samp say_msg "Say %d" 1@
end
samp.CmdRet()
 

a10210319

Active member
Joined
Mar 21, 2014
Messages
38
Reaction score
0
Actually , I want to send string

EX:
/say Disappeared

in the game,result : "Disappea"
the "red" is Disappeared



maybe String only store 8byte(only 8 Characters)?

sorry,my english is not good
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
You don't need 0ac8/9 or @v, 0B35 = string.

Code:
0B34: samp register_client_command "say" to_label @TEST

while true
wait 0
end //loop

:TEST
0B35: samp 0@ = get_last_command_params // 0@ = string = 123456790
if 0AD4: 4@ = scan_string 0@ format "%s" 1@
then 0AF9: samp say_msg "Say %s" 0@ // 0@ = 1234567890
end
0B43: cmd_ret
 
Status
Not open for further replies.
Top