Troubles with string ..
#1

Hello, i need help with this:
Код:
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;
}
I dont know why, but the text (FileInfo[FileLine][Key] & FileInfo[FileLine][Value]) is always null.
Код:
enum FileReadWriteInfo
{
	Key[MAX_FILE_KEY_LENGHT],
	Value[MAX_FILE_VALUE_LENGHT]
}

new FileInfo[MAX_FILE_LINES][FileReadWriteInfo];
When i try to use format, i got these error messages:
Код:
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
Any ideas?

Thanks.
Reply


Messages In This Thread
Troubles with string .. - by Kaczmi - 22.02.2015, 10:05
Re: Troubles with string .. - by Blade_Cervetti - 22.02.2015, 10:08
Re: Troubles with string .. - by Kaczmi - 22.02.2015, 10:11
Re: Troubles with string .. - by Blade_Cervetti - 22.02.2015, 10:14
Re: Troubles with string .. - by Kaczmi - 22.02.2015, 10:15
Re: Troubles with string .. - by Blade_Cervetti - 22.02.2015, 10:18
Re: Troubles with string .. - by Kaczmi - 22.02.2015, 10:21
Re: Troubles with string .. - by Blade_Cervetti - 22.02.2015, 10:22
Re: Troubles with string .. - by Kaczmi - 22.02.2015, 10:25
Re: Troubles with string .. - by Blade_Cervetti - 22.02.2015, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)