When I do a debug run, the first line is accepted, but when I put anything between the quotes, it errors with invalid character. The syntax is fine I think - so why the error?
Re: strange problem - any ideas?
[Re: kiamonster]
#241228 12/14/0823:0512/14/0823:05
Do you declare the strings inside a function? Only global string declaration is ok with this syntax. For declaring inside a function the follow syntax should be used.
Code:
function my_func()
{
STRING* namest;
namest = str_create("na");
}
The syntax is correct for Lite-C (filename.c or filename.h) and global declaration. Maybe it's an engine bug with the warn_level you use? I use warn_level = 1; But it could also a syntax problem with a include before your declaration. Maybe somewhat like commentation at the end of a file or a include of a empty file. This is not allowed.
Howecer, just moved it elsewhere - it failed - so I moved it back - it worked? As Murphys' laws of programming state: Does the damn thing work? If yes then don't touch it! Thanks again though. Very thoughtful.