05.08.2010, 14:54
Hi, i create this function but it doesnt works for mee.. dont store the result in a variable
Is there something wrong?
Код:
public MysqlCargarDato(playerid, var[]) { new variable[128]; new query[128]; new pnombre[MAX_PLAYER_NAME]; GetPlayerName(playerid, pnombre, sizeof(pnombre)); format(query, sizeof(query), "SELECT %s FROM `jugadores` WHERE nombre='%s'", var, pnombre); format(variable, sizeof(variable), "pinfo[playerid][%s]", var); mysql_query(query); mysql_store_result(); mysql_fetch_row(variable); mysql_free_result(); }