Can someone tell me what's wrong with my code and how to fix it? The real code doesn't say "stoop", but it's the exact length.
I think it's the string but I really need all that, is there a better way?
This is how it appears:
[shcode=cpp]
{$CLEO}
0000:
:Load
wait 200
if SAMP.Available
else_jump @Load
0B34: samp register_client_command "stoop" to_label @blah
While true
wait 0
0AF0: 25@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "1"
0AF0: 26@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "2"
0AF0: 27@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "3"
0AF0: 28@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "4"
0AF0: 29@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "5"
0AF0: 30@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "6"
0AF0: 31@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "7"
end
:blah
wait 0
0AC8: 24@ = allocate_memory_size 260
0AD3: 24@ = "{FFFFFF}Stoop stoop: {98B0CD}%d %c{FFFFFF}Stoop stoop: {98B0CD}%d %c{FFFFFF}stoop stoop: {98B0CD}.%d %c{FFFFFF}stop stoop: {98B0CD}$%d %c{FFFFFF}stoop stoooop stooop: {98B0CD}%d %c{FFFFFF}stoop stooop: {98B0CD}%d %c{FFFFFF}stp stoop: {98B0CD}%d" 25@ 0xA 26@ 0xA 27@ 0xA 28@ 0xA 29@ 0xA 30@ 0xA 31@
0B3B: samp show_dialog id 10005 caption "stooop stooooooop" text 24@ button_1 "Ok" button_2 "Close" style 0
0AC9: free_allocated_memory 24@
0B43: samp cmd_ret
[/shcode]
I think it's the string but I really need all that, is there a better way?
This is how it appears:
[shcode=cpp]
{$CLEO}
0000:
:Load
wait 200
if SAMP.Available
else_jump @Load
0B34: samp register_client_command "stoop" to_label @blah
While true
wait 0
0AF0: 25@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "1"
0AF0: 26@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "2"
0AF0: 27@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "3"
0AF0: 28@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "4"
0AF0: 29@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "5"
0AF0: 30@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "6"
0AF0: 31@ = get_int_from_ini_file "cleo\stoop.ini" section "stoop" key "7"
end
:blah
wait 0
0AC8: 24@ = allocate_memory_size 260
0AD3: 24@ = "{FFFFFF}Stoop stoop: {98B0CD}%d %c{FFFFFF}Stoop stoop: {98B0CD}%d %c{FFFFFF}stoop stoop: {98B0CD}.%d %c{FFFFFF}stop stoop: {98B0CD}$%d %c{FFFFFF}stoop stoooop stooop: {98B0CD}%d %c{FFFFFF}stoop stooop: {98B0CD}%d %c{FFFFFF}stp stoop: {98B0CD}%d" 25@ 0xA 26@ 0xA 27@ 0xA 28@ 0xA 29@ 0xA 30@ 0xA 31@
0B3B: samp show_dialog id 10005 caption "stooop stooooooop" text 24@ button_1 "Ok" button_2 "Close" style 0
0AC9: free_allocated_memory 24@
0B43: samp cmd_ret
[/shcode]