Hello, is a way to create a linked list in CLEO, like this.
I know how it works, but in CLEO idk how to reproduce, here is a.k.a pseudocode
I know how it works, but in CLEO idk how to reproduce, here is a.k.a pseudocode
Code:
{$CLEO}
0000:
repeat
wait 0
until SAMP.Available()
0b34: "list" @linked_list
while true
wait 0
if key_press 190 // period or >
then
// store the next string
chatmsg "%s" -1 // next string from list
end
if key_press 188 // comma or <
then
// store the prev string
chatmsg "%s" -1 // prev string from list
end
END
:linked_list
1@ += 1
alloc 0@ 50
format 0@ "string%d" 1@
//insert in a list
free 0@
SAMP.CmdRet()
Last edited: