25.02.2010, 20:58
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
and loading
I made little debug and it shows that Houses[idx][Description] and Houses[idx][Owner] are empty values.. String saving works well.
houseinfo enum
Код:
Description[128], Owner[MAX_PLAYER_NAME],
Код:
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);