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
V2
How can I repair these commands? Thanks for helping me.
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.