їPor quй pasa esto con este guardado? Y_INI. -
entonces es una gamemode que estoy programando desde cero, despuйs de desconectar varias veces y conectar se crea 2 veces en el archivo de la cuenta las funciones que se guardan, a esto me refiero:
Код:
CALLBACK: CargarUser_data(playerid,name[],value[])/* Funciуn que carga los datos del Jugador */
{
INI_Int("Correo_electrуnico", Informacion[playerid][pEmail]);
INI_Int("Password", Informacion[playerid][pPass]);
INI_Int("Dinero", Informacion[playerid][pDinero]);
INI_Int("Admin", Informacion[playerid][pAdmin]);
INI_Float("PosX", Informacion[playerid][pPosX]);
INI_Float("PosY", Informacion[playerid][pPosY]);
INI_Float("PosZ", Informacion[playerid][pPosZ]);
INI_Float("Vida", Informacion[playerid][pVida]);
INI_Float("Chaleco", Informacion[playerid][pChaleco]);
INI_Int("VirtualWorld", Informacion[playerid][pVirtualWorld]);
INI_Int("Interior", Informacion[playerid][pInterior]);
INI_Int("Sexo", Informacion[playerid][pSexo]);
INI_Int("Skin", Informacion[playerid][pSkin]);
INI_Int("Edad", Informacion[playerid][pEdad]);
INI_Int("Trabajo", Informacion[playerid][pTrabajo]);
INI_Int("Canal_dudas", Informacion[playerid][pCanalDudas]);
INI_Bool("Registrado", Informacion[playerid][pRegistrado]);
return 1;
}
CALLBACK: ActualizarCuenta(playerid)/* Funciуn para actualizar los datos del Jugador */
{
if(!IsPlayerConnected(playerid) || !GetPVarInt(playerid,"CargoCuenta")) return false;
new INI:File = INI_Open(UserPath(playerid)), Float: PosX, Float: PosY, Float: PosZ, Float: Vida, Float: Chaleco;
GetPlayerPos(playerid, PosX, PosY, PosZ);
GetPlayerHealth(playerid, Vida);
GetPlayerArmour(playerid, Chaleco);
INI_SetTag(File,"data");
INI_WriteInt(File,"Dinero", GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin", Informacion[playerid][pAdmin]);
INI_WriteFloat(File,"PosX", PosX);
INI_WriteFloat(File,"PosY", PosY);
INI_WriteFloat(File,"PosZ", PosZ);
INI_WriteFloat(File,"Vida", Vida);
INI_WriteFloat(File,"Chaleco", Chaleco);
INI_WriteFloat(File,"VirtualWorld", Informacion[playerid][pVirtualWorld]);
INI_WriteFloat(File,"Interior", GetPlayerInterior(playerid));
INI_WriteInt(File,"Skin", Informacion[playerid][pSkin]);
INI_WriteInt(File,"Sexo", Informacion[playerid][pSexo]);
INI_WriteInt(File,"Trabajo", Informacion[playerid][pTrabajo]);
INI_WriteInt(File,"Canal_dudas", Informacion[playerid][pCanalDudas]);
INI_WriteBool(File, "Registrado", Informacion[playerid][pRegistrado]);
INI_Close(File);
return 1;
}