String bug
Posted: Sun May 07, 2006 11:51 am
This is an odd bug: if you are entering a string in the script editor (char *str), and it is not a parameter in a function, it assigns the string to be empty-just a null. Then you cannot put anything into that string, or you get errors. There are two was to fix this:
- Array String: create it as an array string (char str[20])
- Assign text to it: assign text at its creation: char *str = "ADDSOMETHINHERESOTHEREISSPACEFORALONGSTRING";