CLEO Help What is wrong with my cleo

CLEO related

Nyhfox

New member
Joined
Jul 7, 2021
Messages
2
Reaction score
0
Location
Romania
[Premium]
premiumchat=/pc Vand Linerunner [VP] [R] [S:4/4] [N] [SN] [PF] + All R.
[Vip]
vipchat=/vc Vand Linerunner [VP] [R] [S:4/4] [N] [SN] [PF] + All R.
[Legend]
legendchat=/lc Vand Linerunner [VP] [R] [S:4/4] [N] [SN] [PF] + All R.

that is what chat.ini looks like
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
https://pastebin.com/EuVz5RJg
Only the first 0AF9: samp say_msg 19@ works, the ones after the wait 20000 don't, any ideas why?
Code:
{$CLEO}
 
0662: "made by nyhfox"
thread "0.1"
wait 2500

alloc 19@ 301
alloc 17@ 301
alloc 18@ 301
 
0B34: samp register_client_command "text" to_label @text
0B34: samp register_cleint_command "setvipchat" to_label @setvipchat
0B34: samp register_cleint_command "setlegendchat" to_label @setlegendchat
0B34: samp register_cleint_command "setpremiumchat" to_label @setpremiumchat
 
 
:cmd_39
wait 0   
jump @cmd_39
 

:msg2
if 1@==1
    then
    0AF4: 19@ = read_string_from_ini_file "CLEO\vipchat.ini" section "Vip" key "vipchat"
0AF4: 17@ = read_string_from_ini_file "CLEO\premiumchat.ini" section "Premium" key "premiumchat"
0AF4: 18@ = read_string_from_ini_file "CLEO\legendchat.ini" section "Legend" key "legendchat"
0AF9: samp say_msg 19@
wait 20000
0AF9: samp say_msg 17@
wait 20000
0AF9: samp say_msg 18@
wait 22500
0AF9: samp say_msg 17@
wait 20500
0AF9: samp say_msg 19@
wait 22500
0AF9: samp say_msg 18@
wait 22500
0AF9: samp say_msg 19@
wait 22500
0AF9: samp say_msg 17@
wait 22500
0AF9: samp say_msg 18@
wait 19500
0AF9: samp say_msg 17@
wait 20500
0AF9: samp say_msg 19@
wait 21500
0AF9: samp say_msg 18@
wait 22500
0AF9: samp say_msg 17@
wait 22500
0AF9: samp say_msg 18@
wait 22500
0AF9: samp say_msg 17@
wait 19500
0AF9: samp say_msg 19@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 19@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 19@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 18@
wait 17500
0AF9: samp say_msg 17@
wait 17500
0AF9: samp say_msg 19@
wait 17500
0AF9: samp say_msg 18@
wait 150
end
wait 0
jump @msg2
    


:text
if or
0AAB: file_exists "CLEO\premiumchat.ini"
0AAB: file_exists "CLEO\vipchat.ini"
0AAB: file_exists "CLEO\legendchat.ini" 
then
    wait 500
    1@ = 1
    else
    0AF8: samp add_message_to_chat "{BE2350}Leader.ini  missing"
end
 
:setvipchat
if SAMP.IsCommandTyped(20@)
then
    0AF5: write_string 20@ to_ini_file "cleo\vipchat.ini" section "Vip" key "vipchat"
    chatmsg "Text %s has been saved to vipchat.”" -1 20@ 
else
    chatmsg "SYNTAX : /setvipchat ”new text”" -1
end
SAMP.CmdRet()
 
:setlegendchat
if SAMP.IsCommandTyped(20@)
then
    0AF5: write_string 20@ to_ini_file "cleo\legendchat.ini" section "Legend" key "legendchat"
    chatmsg "Text %s has been saved to legendchat.”" -1 20@ 
else
    chatmsg "SYNTAX : /setlegendchat ”new text”" -1
end
SAMP.CmdRet()
 
:setpremiumchat
if SAMP.IsCommandTyped(20@)
then
    0AF5: write_string 20@ to_ini_file "cleo\premiumchat.ini" section "Premium" key "premiumchat"
    chatmsg "Text %s has been saved to premiumchat.”" -1 20@ 
else
    chatmsg "SYNTAX : /setpremiumchat ”new text”" -1
end
SAMP.CmdRet()





incearca asta // try this
 
Top