SA-MP Forums Archive
Problem With Fetching String From SQL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem With Fetching String From SQL (/showthread.php?tid=130227)



Problem With Fetching String From SQL - actiwe - 25.02.2010

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.