Problem With Fetching String From SQL
#1

Okay, everything except strings is working fine, so it load's all integers and floats, but string's wont come. What I got to load data from sql is:
houseinfo enum
Код:
Description[128],
	Owner[MAX_PLAYER_NAME],
and loading
Код:
mysql_fetch_field_row(Field, "Description");
		strmid(Houses[idx][Description], Field, 0, strlen(Houses[idx][Description]),128);
		mysql_fetch_field_row(Field, "Owner");
		strmid(Houses[idx][Owner], Field, 0, strlen(Houses[idx][Owner]),32);
I made little debug and it shows that Houses[idx][Description] and Houses[idx][Owner] are empty values.. String saving works well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)