Всем привет! Проблемка не большая, да я знаю изи дело, я знаю что у меня руки из жопы, помогите переделанный код передeлать на .cs файлик. Заранее больше спасибо
Код:
{$CLEO .cs}
0000: NOP
0AC8: 18@ = allocate_memory_size 128
:N_1
wait 3000
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
9@ = 0
13@ = 0
14@ = 0
22@ = 1
23@ = 1
24@ = 1
25@ = 0
0AF8: samp add_message_to_chat "CLEO CASINO" color 0xFFFF00
0AF8: samp add_message_to_chat "Реклама: Trevor_Browning DAUN" color 0xFFFF00
:N_2
wait 0
0B75: samp get_chat_string 99 text_to 18@ prefix_to 19@ color_to 20@ prefix_color_to 21@
if
0C18: 19@ = strstr string1 18@ string2 "Дилер сказала: Выпал результат "
jf @N_2
0AD4: 19@ = scan_string 18@ format "%c%c%c%c%c%c%c%d" 20@ 20@ 20@ 20@ 20@ 20@ 20@ 21@
0085: 0@ = 21@
call @redblack 1 id 0@ to 1@
0C1A: 1@ = atoi 1@
wait 500
jump @N_26
:N_3
wait 0
0@ = 0
1@ = 0
jump @N_2
:N_9
wait 0
0AF8: samp add_message_to_chat "%d %d %d %d %d %d %d %d" color 0xFFFF00 9@ 8@ 7@ 6@ 5@ 4@ 3@ 2@
0085: 0@ = 2@
call @redblack 1 id 0@ to 10@
0C1A: 10@ = atoi 10@
0B14: 11@ = 2@ MOD 2
:N_10
wait 0
if
2@ < 19
jf @N_11
12@ = 1
jump @N_29
:N_11
wait 0
if
2@ > 18
jf @N_27
12@ = 2
jump @N_29
:N_26
wait 0
if
1@ == 0
jf @N_27
0AF8: samp add_message_to_chat "Дилер сказала: Выпал результат {ffa500}%d zero" color -1 0@
jump @N_60
:N_27
wait 0
if
1@ == 1
jf @N_28
0AF8: samp add_message_to_chat "Дилер сказала: Выпал результат {ffa500}%d красное" color -1 0@
jump @N_60
:N_28
wait 0
if
1@ == 2
jf @N_26
0AF8: samp add_message_to_chat "Дилер сказала: Выпал результат {ffa500}%d черное" color -1 0@
jump @N_60
:N_29
wait 0
if
10@ == 0
jf @N_30
jump @N_3
:N_30
wait 0
13@ += 1
if
003B: 22@ == 10@
jf @N_31
jump @N_32
:N_31
wait 0
13@ = 1
:N_32
wait 0
0093: 19@ = integer 13@ to_float
0C09: math 20@ = power 0.4865 19@
20@ *= -100.0
20@ += 100.0
0085: 22@ = 10@
:N_33
wait 0
if
22@ == 1
jf @N_34
0AF8: samp add_message_to_chat "Black - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
jump @N_35
:N_34
wait 0
0AF8: samp add_message_to_chat "Red - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
:N_35
wait 0
14@ += 1
if
003b: 23@ == 11@
jf @N_36
jump @N_37
:N_36
wait 0
14@ = 1
:N_37
wait 0
0093: 19@ = integer 14@ to_float
0C09: math 20@ = power 0.4865 19@
20@ *= -100.0
20@ += 100.0
0085: 23@ = 11@
:N_38
wait 0
if
23@ == 1
jf @N_39
0AF8: samp add_message_to_chat "Even - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
jump @N_40
:N_39
wait 0
0AF8: samp add_message_to_chat "Odd - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
:N_40
wait 0
25@ += 1
if
003b: 24@ == 12@
jf @N_41
jump @N_42
:N_41
wait 0
25@ = 1
:N_42
wait 0
0093: 19@ = integer 25@ to_float
0C09: math 20@ = power 0.4865 19@
20@ *= -100.0
20@ += 100.0
0085: 24@ = 12@
:N_43
wait 0
if
24@ == 1
jf @N_44
0AF8: samp add_message_to_chat "19-36 - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
jump @N_3
:N_44
wait 0
0AF8: samp add_message_to_chat "1-18 - %0.1f%c%c" color 0xFFFF00 20@ 0x25 0x25
jump @N_3
:N_60
wait 0
0085: 9@ = 8@
0085: 8@ = 7@
0085: 7@ = 6@
0085: 6@ = 5@
0085: 5@ = 4@
0085: 4@ = 3@
0085: 3@ = 2@
0085: 2@ = 0@
jump @N_9
:redblack
0AC6: 1@ = label @colors offset
0@ *= 2
005A: 1@ += 0@ // (int)
ret 1 1@
:colors
hex
"0" 00 { 0 }
"1" 00 { 1 }
"2" 00 { 2 }
"1" 00 { 3 }
"2" 00 { 4 }
"1" 00 { 5 }
"2" 00 { 6 }
"1" 00 { 7 }
"2" 00 { 8 }
"1" 00 { 9 }
"2" 00 { 10 }
"2" 00 { 11 }
"1" 00 { 12 }
"2" 00 { 13 }
"1" 00 { 14 }
"2" 00 { 15 }
"1" 00 { 16 }
"2" 00 { 17 }
"1" 00 { 18 }
"1" 00 { 19 }
"2" 00 { 20 }
"1" 00 { 21 }
"2" 00 { 22 }
"1" 00 { 23 }
"2" 00 { 24 }
"1" 00 { 25 }
"2" 00 { 26 }
"1" 00 { 27 }
"2" 00 { 28 }
"2" 00 { 29 }
"1" 00 { 30 }
"2" 00 { 31 }
"1" 00 { 32 }
"2" 00 { 33 }
"1" 00 { 34 }
"2" 00 { 35 }
"1" 00 { 36 }
end