- 2,684
- 2,748
зачем ты выделяешь память под 21@ и 22@?Что не так-то? Вроде клео работает, все нормально, проходит какое-то время в игре и просто крашит, без единой причины.
CLEO:{$CLEO} 0000: :1 alloc 22@ 512 0AF0: 22@ = get_int_from_ini_file "cleo\o.ini" section "O" key "I" alloc 21@ 512 21@ = 1 0B34: samp register_client_command "ob" to_label @ob 0B34: samp register_client_command "oi" to_label @oi 0B34: samp register_client_command "o" to_label @o WHILE TRUE 0001: 0 IF and 0B4C: samp is_dialog_active -1 //dialogID, 464 for any dialog 21@ == 1 THEN 22@ += 1 21@ = 0 0AF1: write_int 22@ to_ini_file "cleo\o.ini" section "O" key "I" END IF 8B4C: not samp is_dialog_active 464 THEN 21@ = 1 END END :o 0AF8: "{A6E6E0}Отредактировано объявлений: {24F72B}%d" color 0xF8FAF8 22@ samp.CmdRet() :oi 22@ -= 1 0AF8: "{24F72B}-1 {A6E6E0}объявление" color 0xF8FAF8 0AF8: "{A6E6E0}Отредактировано объявлений: {24F72B}%d" color 0xF8FAF8 22@ samp.CmdRet() :ob 0AF8: "{A6E6E0}Отредактировано объявлений: {24F72B}%d" color 0xF8FAF8 22@ 22@ = 0 0AF1: write_int 22@ to_ini_file "cleo\o.ini" section "O" key "I" 0AF8: "{A6E6E0}Счетчик объявлений очищен" color 0xF8FAF8 samp.CmdRet()