Trasladar esto ????
#1

Buenas, he pensando en como trasladar esto a MYSQL R39, el cargado es Y_INI, y bueno no se me ocurre como hacerlo, lo de las cuentas si lo hice se me hizo fбcil, porque en el dialogo de ingreso busca la tabla del jugador del jugador y despuйs mando a cargar los datos, pero con los negocios no se me ocurre como hacerlo, asн es ¬¬

Код:
OnGamemodeInit..

CargarNegocios();

stock CargarNegocios()
{
	new str_negocios[40], negocio = 0, neg = 0;
	while(negocio < MAX_NEGOCIOS)
	{
		format(str_negocios, 64, "/Negocios/%i.ini", negocio);
		if(fexist(str_negocios))
		{
			INI_ParseFile(str_negocios, "CargarNegocio_%s", .bExtra = true, .extra = negocio);
			InformacionNegocio[negocio][nPickup] = CreateDynamicPickup(1272, 1, InformacionNegocio[negocio][nExtX], InformacionNegocio[negocio][nExtY], InformacionNegocio[negocio][nExtZ], InformacionNegocio[negocio][nWorldExt]);
            ActualizarLabelNegocio(negocio);
			neg++;
		}
		negocio ++;
	}
	if(neg) printf("%d Negocios Cargados", neg);
	return 1;
}
CALLBACK: CargarNegocio_data(negid, name[], value[])
{///////// Esto acб, o sea cargar los datos de la tabla lo se hacer, pero como acceder a la tabla no, no se si me entiende, con tal de que modifiquen arriba el cуdigo para cargar los datos del negocio esto lo harй yo.
	INI_Int("Dueno", InformacionNegocio[negid][nDueno]);
	INI_Int("Precio", InformacionNegocio[negid][nPrecio]);
	INI_String("NombreDueno", InformacionNegocio[negid][nNombreDueno], 24);
	INI_Int("Tipo", InformacionNegocio[negid][nTipo]);
	INI_Int("Estado", InformacionNegocio[negid][nEstado]);
	INI_Int("CajaFuerte", InformacionNegocio[negid][nCajaFuerte]);
	INI_Int("PrecioEntrada", InformacionNegocio[negid][nPrecioEntrada]);
	INI_Float("ExtX", InformacionNegocio[negid][nExtX]);
	INI_Float("ExtY", InformacionNegocio[negid][nExtY]);
	INI_Float("ExtZ", InformacionNegocio[negid][nExtZ]);
	INI_Float("ExtA", InformacionNegocio[negid][nExtA]);
	INI_Float("IntX", InformacionNegocio[negid][nIntX]);
	INI_Float("IntY", InformacionNegocio[negid][nIntY]);
	INI_Float("IntZ", InformacionNegocio[negid][nIntZ]);
	INI_Float("IntA", InformacionNegocio[negid][nIntA]);
	INI_Int("InteriorExt", InformacionNegocio[negid][nInteriorExt]);
	INI_Int("WorldExt", InformacionNegocio[negid][nWorldExt]);
	INI_Int("InteriorInt", InformacionNegocio[negid][nInteriorInt]);
	INI_Int("WorldInt", InformacionNegocio[negid][nWorldInt]);
	return 1;
}
Reply


Messages In This Thread
Trasladar esto ???? - by Fagrinht - 01.04.2016, 21:43
Respuesta: Trasladar esto ???? - by mcreed - 02.04.2016, 22:32
Respuesta: Trasladar esto ???? - by Fagrinht - 03.04.2016, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)