[Ayuda] INI...
#1

Buenas a Todos, no me crea el archivo del usuario con el sistema de datos de ****** y no se por ke :S..

Ejemplo de como coloke :

pawn Код:
//En OnPlayerRequestClass
if(!fexist(Ubicacion(playerid))
{
// aca el dialog del registro
}
else
{
// aca el dialog del ingreso
}

//En OnDialogResponse
 //[*] En las funciones del menu de registro INI_ParseFile(Ubicacion(playerid),"Actualizar_%s",.bExtra = true, .extra = playerid);
 //[*] En las funciones del menu de ingreso INI_Load(Ubicacion(playerid)); y INI_ParseFile(Ubicacion(playerid),"Actualizar_%s",.bExtra = true, .extra = playerid);
 
stock Actualizar_data(playerid,name[],value[])
{
   // Los INI_Int demas...
   return 1;
}

stock GuardarDatos(playerid)
{
   new INI:Archivo = INI_Open(Ubicacion(playerid));
   INI_SetTag(Archivo,"data");
   // los INI_WriteInt y demas...
   INI_Close(Archivo);
   return 1;
}

stock Ubicacion(playerid)
{
  new Archivo[30];
  format(Archivo,sizeof(Archivo),"Usuarios/%s.ini",NombreEx(playerid));
  return Archivo;
}
Si mep ueden ayudar se lo agradezco.

Desde yam uchas Gracias.
Reply


Messages In This Thread
[Ayuda] INI... - by OTACON - 18.10.2012, 18:46
Respuesta: [Ayuda] INI... - by JuliPera - 18.10.2012, 19:05
Respuesta: [Ayuda] INI... - by OTACON - 18.10.2012, 19:08
Respuesta: [Ayuda] INI... - by OTACON - 19.10.2012, 05:31
Re: [Ayuda] INI... - by digman - 19.10.2012, 13:20
Respuesta: [Ayuda] INI... - by OTACON - 22.10.2012, 09:16
Respuesta: [Ayuda] INI... - by TheChaoz - 22.10.2012, 19:09
Respuesta: [Ayuda] INI... - by OTACON - 22.10.2012, 23:41
Respuesta: [Ayuda] INI... - by TheChaoz - 23.10.2012, 02:18

Forum Jump:


Users browsing this thread: 1 Guest(s)