[shcode=cpp]
{REMOVING "-" FROM NUMBER}
0AF5: write_string 25@v to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC8: 16@ = allocate_memory_size 600
0AF4: 16@ = read_string_from_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
if
0AD4: 31@ = scan_string 16@ format "%d-%d" 4@ 5@
then
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-0%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d0%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-00%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d00%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-000%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d000%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
[/shcode]
Look at
[shcode=cpp]
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
[/shcode]
Is there any problem if I use 0AC9 two times or three times when var x@ is already out of memory? In game I dont see any problem but i'd like to know if i did it well or not xD
{REMOVING "-" FROM NUMBER}
0AF5: write_string 25@v to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC8: 16@ = allocate_memory_size 600
0AF4: 16@ = read_string_from_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
if
0AD4: 31@ = scan_string 16@ format "%d-%d" 4@ 5@
then
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-0%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d0%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-00%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d00%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 7@ = allocate_memory_size 600
0AD3: 7@ = format "%d-000%d" 4@ 5@
if
0C29: 31@ = stristr string1 16@ string2 7@
then
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d000%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
else
0AC8: 6@ = allocate_memory_size 600
0AD3: 6@ = format "%d%d" 4@ 5@
0AF5: write_string 6@ to_ini_file "cleo\Copy_Chat.ini" section "SectionName" key "Organizer.Number"
0AC9: free_allocated_memory 6@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
[/shcode]
Look at
[shcode=cpp]
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
0AC9: free_allocated_memory 7@
end
[/shcode]
Is there any problem if I use 0AC9 two times or three times when var x@ is already out of memory? In game I dont see any problem but i'd like to know if i did it well or not xD