Hi, i have to following piece of code:
Ok, si it should go until the message is on the chat or until 5@ goes to 0. But the command is only send for 3 times...Do you know why ?
Code:
0006: 5@ = 300
0AC8: 6@ = allocate_memory_size 260
0AB1: call @getChatEntryText 1 id 99 to 6@
repeat
wait 0
if
0019: 5@ > 0
then
0AF9: "/punish %d %d" 1@ 5@
000E: 5@ -= 50
else
0AC9: free_allocated_memory 6@
goto @A
end
0AB1: call @getChatEntryText 1 id 99 to 6@
until 0AD4: 30@ = scan_string 6@ format "{B8FFDB}You punished %s for %d seconds." 29@ 28@
0AC9: free_allocated_memory 6@