CLEO Help Whats wrong with string? [help string]

CLEO related
Status
Not open for further replies.

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
0B34: samp register_client_command "scmd" to_label @CMDwithID

:loop
0AF0: 18@ = get_int_from_ini_file "cleo\SuppConfig.ini" section "CMD" key "active"
if
not 18@ == 1
jf @sendcmd 
jump @loop




:sendcmd
wait 1000
0AF4: 18@ = read_string_from_ini_file "cleo\SuppConfig.ini" section "CMD" key "chat" 
0AF9: samp say_msg 18@
0AF1: write_int 0 to_ini_file "cleo\SuppConfig.ini" section "CMD" key "active"
jump @loop



:CMDwithID
wait 0
0B35: samp 17@ = get_last_command_params
0AF5: write_string 17@ to_ini_file "cleo\SuppConfig.ini" section "CMD" key "chat"
0AF1: write_int 1 to_ini_file "cleo\SuppConfig.ini" section "CMD" key "active"
Samp.CmdRet()

The script wont work!
Whats wrong?

Sincerely Spexx!
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
I solved it, i did forget to allocate memory size

0AC8: 17@ = allocate_memory_size 20

Thanks anyway!
 
Status
Not open for further replies.
Top