Wrong Function, dont work mysql
#1

Hi, i create this function but it doesnt works for mee.. dont store the result in a variable

Код:
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();
}
Is there something wrong?
Reply


Messages In This Thread
Wrong Function, dont work mysql - by Zafire1410 - 05.08.2010, 14:54
Re: Wrong Function, dont work mysql - by MadeMan - 05.08.2010, 15:01
Re: Wrong Function, dont work mysql - by Zafire1410 - 05.08.2010, 16:29
Re: Wrong Function, dont work mysql - by Zafire1410 - 05.08.2010, 17:03
Re: Wrong Function, dont work mysql - by Zafire1410 - 05.08.2010, 17:58
Re: Wrong Function, dont work mysql - by JaTochNietDan - 05.08.2010, 18:09
Re: Wrong Function, dont work mysql - by Zafire1410 - 05.08.2010, 18:22
Re: Wrong Function, dont work mysql - by Cameltoe - 24.08.2010, 01:02

Forum Jump:


Users browsing this thread: 6 Guest(s)