28.04.2011, 11:52
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; }