Page 1 of 1

String bug

PostPosted: Sun May 07, 2006 11:51 am
by DilloDude
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:
  1. Array String: create it as an array string (char str[20])
  2. Assign text to it: assign text at its creation: char *str = "ADDSOMETHINHERESOTHEREISSPACEFORALONGSTRING";

Re: String bug

PostPosted: Sun May 07, 2006 12:15 pm
by makslane
DilloDude wrote: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.


Can you show me a code?