Problem with code...
#2

I edited my function for you..

Код:
stock GetCuentaData(playerid[],campo[],table[]="cuentas")
{
	new returnit[256];
	new string2[256];
	print("Inicio de GetCuentaData...");
	format(string2,sizeof(string2),"SELECT %s FROM %s WHERE Nombre = '%s' LIMIT 1",campo,table,pNameEx(playerid));
	mysql_ping();
	mysql_query(string2);
	mysql_store_result();
	mysql_fetch_row(returnit,"|");
	mysql_free_result();
	return returnit;
}
Reply


Messages In This Thread
Problem with code... - by Narxon - 09.05.2011, 13:45
Re: Problem with code... - by coole210 - 09.05.2011, 15:23
Re: Problem with code... - by Vince - 09.05.2011, 15:55
Re: Problem with code... - by MadeMan - 09.05.2011, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)