- 183
- 21
Смысл просто пронумеровать строки, при первой пронумеровке все нормально, когда после нее появляется непронумерованная строка, которая должна пронумероваться и предыдущие должны так же измениться, идет краш, буду премного благодарен за помощь
Код:
0b34=reg_cmd
0b12=xor
PHP:
{$CLEO .cs}
0000:
repeat
wait 0
until 0AFA: is_samp_available
reg_cmd "chatrw" @test
29@ = 2
while true
wait 0
if 29@ == 1
then
alloc 5@ 512
alloc 6@ 512
alloc 9@ 512
alloc 14@ 512
for 10@ = 0 to 99 step 1
0B75: samp get_chat_string 10@ text 5@ prefix 6@ coloro 7@ prefix_color 8@
if 0AD4: 27@ scan string 5@ "[%d] %s" 13@ 14@
then
if 803B: 13@ == 10@
then
format 9@ "[%d] %s" 10@ 14@
0B74: samp set_chat_string 10@ text 9@ prefix 6@ color 7@ prefix_color 8@
end
else
format 9@ "[%d] %s" 10@ 5@
0B74: samp set_chat_string 10@ text 9@ prefix 6@ color 7@ prefix_color 8@
end
end
free 5@
free 6@
free 9@
free 14@
end
end
:test
if 29@ == 2
then
for 10@ = 200 to 299 step 1
wait 0
0209: 11@ = random_int_in_ranges 0 4684
chatmsg "%d" 10@ 11@
end
29@ = 0
end
xor 29@ 29@ 1
samp.CmdRet()