CLEO Help Two versions for the same commands, none of them working

CLEO related
Status
Not open for further replies.

Donboo

New member
Joined
Mar 23, 2014
Messages
4
Reaction score
0
Hey, I've made the following commands in two versions. The first version is working, but client is crashing and the 2nd version doesn't work, but client isn't crashing.


V1
Code:
:cmd_42
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s, asd." 1@
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/cheatstw <id>" 2000
end
SAMP.CmdRet()

:cmd_43
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s, etcetc" 1@
    0AF9: samp say_msg "asd"
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/suspecttw <id>" 2000
end
SAMP.CmdRet()

:cmd_45
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s, etc etc etc." 1@
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/necooperaretw <id>" 2000
end
SAMP.CmdRet()                  
                    

V2
Code:
:cmd_42
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s, r" 1@
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/cheatstw <id>" 2000
end
SAMP.CmdRet()

:cmd_43
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s, rr" 1@
    0AF9: samp say_msg "rrrirr"
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/suspecttw <id>" 2000
end
SAMP.CmdRet()

:cmd_45
SAMP.IsCommandTyped(20@)
if 0AD4: $nul  = scan_string 20@ format "%d" 21@
then 
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "%s,rrr" 1@
    0AF9: samp say_msg "/ban %d 90 Cheats (TW)" 21@
else print "~r~/necooperaretw <id>" 2000
end
SAMP.CmdRet()                  
                   

How can I repair these commands? Thanks for helping me.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
There's nothing wrong with the commands, your problem lies somewhere else.
2016.. inca se foloseste TW, ce primitiv.
 

Donboo

New member
Joined
Mar 23, 2014
Messages
4
Reaction score
0
I've solved the problem, but now I'm facing another problem =)) i'm a shame for cleo

Code:
0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/gethere %d" 21@
    0AF9: samp say_msg "/freeze %d" 21@
    WAIT 5000
    0AF9: samp say_msg "%s, rrrrrrrrrrrr." 1@
After teleporting the target, the script should send a message on chat, but it's sending in the same second with /gethere so the target won't see the message.

http://cheatstw.com/ pe asta nici prin TW nu-l mai gasesti..
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
4
Donboo said:
I've solved the problem, but now I'm facing another problem =)) i'm a shame for cleo

Code:
0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/gethere %d" 21@
    0AF9: samp say_msg "/freeze %d" 21@
    WAIT 5000
    0AF9: samp say_msg "%s, rrrrrrrrrrrr." 1@
After teleporting the target, the script should send a message on chat, but it's sending in the same second with /gethere so the target won't see the message.

It's because on CMD functions "wait" doesnt work at all, the script bypasses it. If you want to put a "wait", then do it in the main loop
 
Status
Not open for further replies.
Top