Really? Hmmm, ok. What I exactly do is this:
Code:
var string_array[500];
string* string_pointer;
function init_strings()
{
var i = 0;
while (i<500)
{
string_array[i] = handle(str_create("#6"));
i += 1;
}
}
function reset_strings()
{
var i = 0;
while (i<500)
{
string_pointer = ptr_for_handle(string_pointer[i]);
str_cpy(string_pointer, "0");
i += 1;
}
}
function on_button_click(button_number)
{
string_pointer = ptr_for_handle(string_pointer[button_number-1]);
inkey(string_pointer);
}
If I don't use str_cpy(string_pointer, "0"); then it works with inkey an the string is 6 chars long to edit. But after str_cpy it's only 1 char long.