i like it better with the IDX in the user variable i have larger names and then the string wil be to large

can someone help me a bit?
the main script and then i 5 minute delay
or the new script but then with IDX instead of name
Thanks in advance
Greetz bigdog