08.05.2011, 12:39
I think you want to return a string
pawn Код:
forward GetCuData(playerid, campo[]);
public GetCuData(playerid, campo[])
{
new tmp[128];
new row[60];
format(tmp, 128, "SELECT %s FROM cucus WHERE ID= %d LIMIT 1", campo, cuInfo[playerid][cuSQLID]);
mysql_query(tmp);
mysql_store_result();
mysql_fetch_row(row);
mysql_free_result();
return row;
}