22.02.2015, 10:05
Hello, i need help with this:
I dont know why, but the text (FileInfo[FileLine][Key] & FileInfo[FileLine][Value]) is always null.
When i try to use format, i got these error messages:
Any ideas? 
Thanks.
Код:
stock FileWriteString(key[], value[]) { if(strlen(key) > MAX_FILE_KEY_LENGHT || strlen(value) >= MAX_FILE_VALUE_LENGHT) return -1; strcat(FileInfo[FileLine][Key], key); strcat(FileInfo[FileLine][Value], value); FileLine++; return 1; }
Код:
enum FileReadWriteInfo { Key[MAX_FILE_KEY_LENGHT], Value[MAX_FILE_VALUE_LENGHT] } new FileInfo[MAX_FILE_LINES][FileReadWriteInfo];
Код:
error 001: expected token: "]", but found "-identifier-" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line

Thanks.