returning a name
#1

Code:
stock GetHouseTag(id,&cost)
{
	new q[128];
	format(q,128,"SELECT owner, price FROM houses WHERE ID=%d",id);
	mysql_query(q);
	mysql_store_result();
	new field[2][32],owner[32];
	mysql_fetch_row_format(q,"|");
	explode(q,field,"|");
	format(owner,32,"%s",field[0]);
	cost=strval(field[1]);
	mysql_free_result();
	return owner;
}
heres is what i tried but it doesnt return owner. its just blank
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)