[Ayuda] Problema rarisimo con gm
#1

Hola a todos
tengo un problema que es muy raro, tengo un gm con base de ciudad prohibida, cuando compro autos, casas o negocios, el gm se buguea, y no guarda ningъn stat en la cuenta de los usuarios, si un usuario compro algo, al salir y volver a entrar es como si no hubiera comprado nada. Primero pensй que tras modificar el gm yo mismo hice algo mal, pero esto no fue asн, ya que use la versiуn original (que si funcionaba bien y esto no pasaba), y paso lo mismo, descargue otro gm con base a ciudad prohibida, y pasaba lo mismo, luego descargue ciudad prohibida, y lo mismo sucede. Reinstale Gta SA entero, pero no soluciono el problema, he probado con una versiуn anterior del SAMP, pero el problema persiste.
їAlguien sabe como solucionar esto?

PD: Antes funcionaba correctamente.
Reply
#2

Para empezar, no es un error rarнsimo, es algo normal de alguien que no sabe que es un sistema de guardado de datos.

De por sн Ciudad Prohibida usa INI, por lo tanto todo lo que se guarda se guarda en la carpeta "Scriptfiles"...

Tambiйn puede ser que no se guarde porque estбs cerrando el servidor a lo bruto o con /rcon gmx

En las ъltimas versiones de Ciudad Prohibida habнa un CMD que era /control server... desde ahн puedes reiniciar.
Reply
#3

Ese es el problema, no lo cierro a lo bruto ni /rcon con gmx, de hecho hago lo que un usuario normal harнa, y lo que he hecho antes, me registro, luego compro un auto, apago el motor, lo estaciono y salgo de el, luego salgo del juego presionando a Esc y dбndole a salir del juego, pero al volver a entrar no se guardo nada. Esto hacia antes y no me habнa causado problemas, sin embargo esta vez no se guarda nada. Eso pasa en mi pc, y ademas tengo un vps, en el vps tambiйn funcionaba perfecto, pero ahora al comprar algъn vehнculo el servidor se cae, al volverlo a iniciar no se guardo nada.
Reply
#4

A ver pasa el cуdigo de cuando compras un auto y el de el guardado de cuentas en OnPlayerDisconnect
Reply
#5

Este es el comando para comprar el vehiculo:
Код:
zcmd(cvehiculo, playerid, params[]){
 	    if(PlayerInfo[playerid][pLevel] < 2) return Message(playerid, COLOR_RED2, "Debes ser como mнnimo nivel 2");
		new newcar = GetPlayerVehicleID(playerid), idcar = GetPlayerVehicleID(playerid);
 	    if(CarInfo[idcar][cOwned] == 1) return Message(playerid, COLOR_RED2, "El vehнculo no estб en venta.");
 	    if(PlayerInfo[playerid][pPcarkey] != 9999) return Message(playerid, COLOR_RED2, "Ya posees un vehнculo.");
        if(!IsAnOwnableCar(newcar)) return Message(playerid, COLOR_RED2, "Este vehнculo no estб en venta.");
   	    if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]){
            ShowPlayerDialog(playerid, IMPORTAR_MOTOR, DIALOG_STYLE_LIST, "Elegir prestaciones", "Motor sin plomo 95\t\tCapacidad: 100l (1$/l)\nMotor sin plomo 98\t\tCapacidad: 120l (1$/l)\nMotor Diesel\t\tCapacidad: 160l (2$/l)\nMotor Biodiesel\t\tCapacidad: 230l (3$/l)", "Instalar", "Salir");
            PlayerInfo[playerid][pPcarkey] = idcar;
            CarInfo[idcar][cVehTime] = gettime() + 1296000;
            PlayerInfo[playerid][pTimeCar] = gettime() + 1296000;
            CarInfo[idcar][cOwned] = 1;
            CarInfo[idcar][cBattery] = 5000;
            strmid(CarInfo[PlayerInfo[playerid][pPcarkey]][cOwner], PlayerName(playerid), 0, strlen(PlayerName(playerid)), 32);
            Bought(playerid, CarInfo[PlayerInfo[playerid][pPcarkey]][cValue]);
            SetVehicleParamsEx(idcar, 0,0,0,0,0,0,0);
            gEngine[playerid] = 0;
            engineOn[idcar] = false;
            ClearChatbox(playerid, 10);
            Message(playerid, COLOR_GREEN, "Felicidades! Has adquirido este vehнculo, utiliza (/v [item])");
            Message(playerid, COLOR_GREEN, "MUY IMPORTANTE: {FFFFFF}Utiliza /tiempoveh para mas informacion sobre tu vehнculo.");
            strmid(CarInfo[idcar][cPlate], "00000", 0, strlen("00000"), 255);
            SetVehicleNumberPlate(idcar, CarInfo[idcar][cPlate]);
            UpdateCars();
            new ownvehkey = PlayerInfo[playerid][pPcarkey];
 	        new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3;
            if(PlayerToPoint(30.0,playerid,544.5143,-1280.5714,17.2482))    Till(6, carsellprice/3);
 			if(PlayerToPoint(30.0,playerid,1045.3408,-905.2751,42.6273))    Till(7, carsellprice/3);
	    	if(PlayerToPoint(50.0,playerid,2152.0850,-1150.7964,24.1398))   Till(8, carsellprice/3);
	    	if(PlayerToPoint(20.0,playerid,633.4413,-1950.7174,1.6708))     Till(15, carsellprice/3);
	    } else Message(playerid, COLOR_RED2, "ЎNo tienes dinero suficiente!");
	    return 1;
	}
Y este es el de OnPlayerDisconnect:
Код:
public OnPlayerDisconnect(playerid, reason)
{
new welcome[128], nombrewelcome[MAX_PLAYER_NAME], IPwelcome[16];
GetPlayerName(playerid, nombrewelcome, sizeof(nombrewelcome));
GetPlayerIp(playerid, IPwelcome, sizeof(IPwelcome));
format(welcome, 100, "Servidor:{E6E6E6}[ID:%d]{FF0040}%s Ha Salido Del Servidor{FFFFFF}[IP:%s]", playerid, nombrewelcome, IPwelcome );
if (PlayerInfo[playerid][pKey] == 15418665)
{

GetPlayerName(playerid, nombrewelcome, sizeof(nombrewelcome));
GetPlayerIp(playerid, IPwelcome, sizeof(IPwelcome));
format(welcome, 100, "Servidor:{E6E6E6}[ID:%d]{FF0040}%s Ha Salido Del Servidor{FFFFFF}[IP:%s]", playerid, nombrewelcome, IPwelcome );
	SendClientMessage(playerid, COLOR_GREY,welcome);
}
	new string[128];
	SaveGuns(playerid);
	OnPlayerUpdateTime(playerid);

	gActivePlayers[playerid]--;
	numplayers--;

	TextDrawHideForPlayer(playerid, SunGlasses);
	TextDrawHideForPlayer(playerid, BalanceTextDraw[playerid]);
	TextDrawHideForPlayer(playerid, SkinTextDraw[playerid]);
	TextDrawHideForPlayer(playerid, NivelTextDraw[playerid]);
	TextDrawHideForPlayer(playerid, ExperienciaTextDraw[playerid]);
	TextDrawHideForPlayer(playerid, TelefonoTextDraw[playerid]);
	Delete3DTextLabel(Estado[playerid]);
	if(SmokeTimer[playerid]) KillTimer(SmokeTimer[playerid]);
	if(DrugTimer[playerid]) KillTimer(DrugTimer[playerid]);
	if(PlayerInfo[playerid][pPcarkey] != 9999 && PlayerInfo[playerid][pTimeCar] > gettime())
	{
 		SetVehicleVirtualWorld(PlayerInfo[playerid][pPcarkey], PlayerInfo[playerid][pPcarkey]);
	}
	if(PlayerInfo[playerid][pPcarkey2] != 9999 && PlayerInfo[playerid][pTimeCar2] > gettime())
	{
	    SetVehicleVirtualWorld(PlayerInfo[playerid][pPcarkey2], PlayerInfo[playerid][pPcarkey2]);
 	}
	if(PlayerInfo[playerid][pCarPremium] != 9999)
	{
 		SetVehicleVirtualWorld(PlayerInfo[playerid][pCarPremium], PlayerInfo[playerid][pCarPremium]);
	}
	if(HireKey[playerid] != 9999)
	{
	    SetVehicleToRespawn(HireKey[playerid]);
	}
    if(Interview != 0)
	{
		if(strcmp(Interviewer,PlayerName(playerid),true) == 0 )
		{
		    Message(playerid, COLOR_WHITE, "Se cancelу tu entrevista!");
		    Interviewer = "Nadie";
		    Interview = 0;
		}
	}
	if(PaintballType[playerid] > 0)
 	{
 	    switch(PaintballType[playerid])
 	    {
 	    	case 1: TotalDM -= 1;
 	    	case 2: TTeamNaranja -= 1;
 	    	case 3: TTeamVerde -= 1;
 	    	case 4: TotalPlayer -= 1;
 		}
	}
	if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
	{
	    if(IsPlayerConnected(TransportDriver[playerid]))
		{
		    Bought(playerid, TransportCost[playerid]);
			Earn(TransportDriver[playerid], TransportCost[playerid]);
		    format(string, sizeof(string), "~w~Te costo ~r~%d$",TransportCost[playerid]);
		    GameTextForPlayer(playerid, string, 5000, 1);
		    format(string, sizeof(string), "~w~Has ganado ~g~%d$",TransportCost[playerid]);
		    GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
		    TextDrawHideForPlayer(playerid, Taximeter[playerid]);
			TextDrawHideForPlayer(TransportDriver[playerid], Taximeter[TransportDriver[playerid]]);
			TransportCost[playerid] = 0;    TransportTime[playerid] = 0;    TransportDriver[playerid] = 999;
		}
	}
	if(TaxiCalled[playerid] > 0)
	{
		switch(TaxiCalled[playerid])
		{
			case 1: { TaxiSlot1 = 999; SlotZone1 = "Sin Localizar"; SlotCity1 = "No"; TiempoSlot1 = 0; }
			case 2: { TaxiSlot2 = 999; SlotZone2 = "Sin Localizar"; SlotCity2 = "No"; TiempoSlot2 = 0; }
			case 3: { TaxiSlot3 = 999; SlotZone3 = "Sin Localizar"; SlotCity3 = "No"; TiempoSlot3 = 0; }
			case 4: { TaxiSlot4 = 999; SlotZone4 = "Sin Localizar"; SlotCity4 = "No"; TiempoSlot4 = 0; }
			case 5: { TaxiSlot5 = 999; SlotZone5 = "Sin Localizar"; SlotCity5 = "No"; TiempoSlot5 = 0; }
			case 6: { TaxiSlot6 = 999; SlotZone6 = "Sin Localizar"; SlotCity6 = "No"; TiempoSlot6 = 0; }
			case 7: { TaxiSlot7 = 999; SlotZone7 = "Sin Localizar"; SlotCity7 = "No"; TiempoSlot7 = 0; }
			case 8: { TaxiSlot8 = 999; SlotZone8 = "Sin Localizar"; SlotCity8 = "No"; TiempoSlot8 = 0; }
		}
	}
}
Reply
#6

Ese cуdigo que pasaste es basura... usa el Ciudad Prohibida original.

http://www.mediafire.com/download/am...2/CPTexter.zip

En ese GM seguro no se te van los datos...

En OnPlayerDisconnect no veo que guarde los datos excepto que la funciуn para guardar datos sea esta.

OnPlayerUpdateTime(playerid);

De ser asн deberнas pasar esa funciуn.
Reply
#7

Si, creo que es el OnPlayerUpdateTime(playerid);
aqui esta
Код:
public OnPlayerUpdateTime(playerid)
{
	if(gPlayerLogged[playerid] == 1)
	{
 		new string[128], string3[64], playername3[MAX_PLAYER_NAME];

		GetPlayerName(playerid, playername3, sizeof(playername3));

		format(string3, sizeof(string3), "users/%s.ini", playername3);

		new INI:PlayerAcc = INI_Open( string3 );

			INI_WriteString( PlayerAcc, "Key", 			PlayerInfo[playerid][pKey]);
			INI_WriteInt( PlayerAcc, "Level", 			PlayerInfo[playerid][pLevel]);
			INI_WriteInt( PlayerAcc, "AdminCRP",       	PlayerInfo[playerid][pAdminECRP]);
			INI_WriteInt( PlayerAcc, "Facciones",       PlayerInfo[playerid][pFacciones]);
			INI_WriteInt( PlayerAcc, "Helper",      	PlayerInfo[playerid][pHelper]);
			INI_WriteInt( PlayerAcc, "ConnectedTime",   PlayerInfo[playerid][pConnectTime]);
			INI_WriteInt( PlayerAcc, "Registered",      PlayerInfo[playerid][pReg]);
			INI_WriteInt( PlayerAcc, "Sex",             PlayerInfo[playerid][pSex]);
			INI_WriteInt( PlayerAcc, "Age",             PlayerInfo[playerid][pAge]);
			INI_WriteInt( PlayerAcc, "Origin",          PlayerInfo[playerid][pOrigin]);
			INI_WriteInt( PlayerAcc, "Walk",            PlayerInfo[playerid][pWalk]);
			INI_WriteInt( PlayerAcc, "Respect",         PlayerInfo[playerid][pExp]);
			INI_WriteInt( PlayerAcc, "Money",           GetPlayerMoney(playerid));
			INI_WriteInt( PlayerAcc, "Bank",            PlayerInfo[playerid][pAccount]);
            INI_WriteInt( PlayerAcc, "Cheques",         PlayerInfo[playerid][pCheques]);
            INI_WriteInt( PlayerAcc, "Kills",           PlayerInfo[playerid][pKills]);
            INI_WriteInt( PlayerAcc, "Deaths",          PlayerInfo[playerid][pDeaths]);
            INI_WriteInt( PlayerAcc, "Arrested",        PlayerInfo[playerid][pArrested]);
            INI_WriteInt( PlayerAcc, "LottoNr",         PlayerInfo[playerid][pLottoNr]);
            INI_WriteInt( PlayerAcc, "Job",             PlayerInfo[playerid][pJob]);
            INI_WriteInt( PlayerAcc, "Jailed",          PlayerInfo[playerid][pJailed]);
            INI_WriteInt( PlayerAcc, "JailTime",        PlayerInfo[playerid][pJailTime]);
            INI_WriteInt( PlayerAcc, "Materiales",      PlayerInfo[playerid][pMats]);
            INI_WriteInt( PlayerAcc, "Drogas",          PlayerInfo[playerid][pDrugs]);
            INI_WriteInt( PlayerAcc, "Speed",           PlayerInfo[playerid][pSpeed]);
            INI_WriteInt( PlayerAcc, "Ectasy",          PlayerInfo[playerid][pEctasy]);
            INI_WriteInt( PlayerAcc, "Ritalin",         PlayerInfo[playerid][pRitalin]);
            INI_WriteInt( PlayerAcc, "Heroina",         PlayerInfo[playerid][pHeroina]);
            INI_WriteInt( PlayerAcc, "Marihuana",       PlayerInfo[playerid][pMarihuana]);
            INI_WriteInt( PlayerAcc, "Leader",          PlayerInfo[playerid][pLeader]);
            INI_WriteInt( PlayerAcc, "Member",          PlayerInfo[playerid][pMember]);
            INI_WriteInt( PlayerAcc, "Rank",            PlayerInfo[playerid][pRank]);
            INI_WriteInt( PlayerAcc, "Char",            PlayerInfo[playerid][pChar]);
            	GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
            INI_WriteFloat( PlayerAcc, "Health",		PlayerInfo[playerid][pHealth]);
            	GetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
            INI_WriteFloat( PlayerAcc, "Armour",		PlayerInfo[playerid][pArmour]);
            	PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
            INI_WriteInt( PlayerAcc, "Int",             PlayerInfo[playerid][pInt]);
            	PlayerInfo[playerid][pVirWorld] = GetPlayerVirtualWorld(playerid);
			INI_WriteInt( PlayerAcc, "VirWorld",        PlayerInfo[playerid][pVirWorld]);
            INI_WriteInt( PlayerAcc, "Team",            PlayerInfo[playerid][pTeam]);
            INI_WriteInt( PlayerAcc, "Model",           PlayerInfo[playerid][pModel]);
            INI_WriteInt( PlayerAcc, "PhoneNr",         PlayerInfo[playerid][pPnumber]);
            INI_WriteInt( PlayerAcc, "Minutes",         PlayerInfo[playerid][pMinutes]);
            INI_WriteInt( PlayerAcc, "MTexto",          PlayerInfo[playerid][pMTexto]);
            INI_WriteInt( PlayerAcc, "Ipod",            PlayerInfo[playerid][pIpod]);
            INI_WriteInt( PlayerAcc, "Car",             PlayerInfo[playerid][pPcarkey]);
            INI_WriteInt( PlayerAcc, "Car2",            PlayerInfo[playerid][pPcarkey2]);
            INI_WriteInt( PlayerAcc, "TimeCar",         PlayerInfo[playerid][pTimeCar]);
            INI_WriteInt( PlayerAcc, "TimeCar2",        PlayerInfo[playerid][pTimeCar2]);
            INI_WriteInt( PlayerAcc, "House",           PlayerInfo[playerid][pPhousekey]);
            INI_WriteInt( PlayerAcc, "Negocio",         PlayerInfo[playerid][pPbizzkey]);
   			GetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
			INI_WriteFloat( PlayerAcc, "Pos_x",         PlayerInfo[playerid][pPos_x]);
			INI_WriteFloat( PlayerAcc, "Pos_y",         PlayerInfo[playerid][pPos_y]);
			INI_WriteFloat( PlayerAcc, "Pos_z",         PlayerInfo[playerid][pPos_z]);
			INI_WriteInt( PlayerAcc, "CarLic",          PlayerInfo[playerid][pCarLic]);
			INI_WriteInt( PlayerAcc, "FlyLic",          PlayerInfo[playerid][pFlyLic]);
			INI_WriteInt( PlayerAcc, "BoatLic",         PlayerInfo[playerid][pBoatLic]);
			INI_WriteInt( PlayerAcc, "GunLic",          PlayerInfo[playerid][pGunLic]);
			INI_WriteInt( PlayerAcc, "Gafas",           PlayerInfo[playerid][pGafas]);
			INI_WriteInt( PlayerAcc, "Tutorial",        PlayerInfo[playerid][pTut]);
			INI_WriteString( PlayerAcc, "Antecedente1",	PlayerInfo[playerid][pAntecedente1]);
        	INI_WriteString( PlayerAcc, "Antecedente2",	PlayerInfo[playerid][pAntecedente2]);
        	INI_WriteString( PlayerAcc, "Antecedente3",	PlayerInfo[playerid][pAntecedente3]);
        	INI_WriteString( PlayerAcc, "Note1", 		PlayerInfo[playerid][pNote1]);
        	INI_WriteString( PlayerAcc, "Note2", 		PlayerInfo[playerid][pNote2]);
        	INI_WriteString( PlayerAcc, "Note3", 		PlayerInfo[playerid][pNote3]);
        	INI_WriteString( PlayerAcc, "Note4", 		PlayerInfo[playerid][pNote4]);
        	INI_WriteString( PlayerAcc, "Note5", 		PlayerInfo[playerid][pNote5]);
        	INI_WriteString( PlayerAcc, "SMS1", 		PlayerInfo[playerid][pSMS_1]);
        	INI_WriteString( PlayerAcc, "SMS2", 		PlayerInfo[playerid][pSMS_2]);
        	INI_WriteString( PlayerAcc, "SMS3", 		PlayerInfo[playerid][pSMS_3]);
        	INI_WriteString( PlayerAcc, "SMS4", 		PlayerInfo[playerid][pSMS_4]);
        	INI_WriteString( PlayerAcc, "SMS5", 		PlayerInfo[playerid][pSMS_5]);
        	INI_WriteInt( PlayerAcc, "Lighter",         PlayerInfo[playerid][pLighter]);
        	INI_WriteInt( PlayerAcc, "Cigarettes",      PlayerInfo[playerid][pCigarettes]);
            INI_WriteInt( PlayerAcc, "Mascara",         PlayerInfo[playerid][pMask]);
        	INI_WriteInt( PlayerAcc, "Locked",          PlayerInfo[playerid][pLocked]);
        	INI_WriteInt( PlayerAcc, "Advertencias",    PlayerInfo[playerid][pAdvertencias]);
        	INI_WriteInt( PlayerAcc, "AdminAdver",      PlayerInfo[playerid][pAdminAdver]);
        	INI_WriteInt( PlayerAcc, "DNI",             PlayerInfo[playerid][pDNI]);
        	INI_WriteString( PlayerAcc, "MSN",          PlayerInfo[playerid][pMSN]);
        	INI_WriteString( PlayerAcc, "Estado",       PlayerInfo[playerid][pEstado]);
        	INI_WriteInt( PlayerAcc, "Weapon",          PlayerInfo[playerid][pWeapon]);
        	INI_WriteInt( PlayerAcc, "Ammo",            PlayerInfo[playerid][pAmmo]);
        	INI_WriteInt( PlayerAcc, "Weapon2",         PlayerInfo[playerid][pWeapon2]);
        	INI_WriteInt( PlayerAcc, "Ammo2",           PlayerInfo[playerid][pAmmo2]);
        	INI_WriteInt( PlayerAcc, "Weapon3",         PlayerInfo[playerid][pWeapon3]);
        	INI_WriteInt( PlayerAcc, "Ammo3",           PlayerInfo[playerid][pAmmo3]);
        	INI_WriteInt( PlayerAcc, "Weapon4",         PlayerInfo[playerid][pWeapon4]);
        	INI_WriteInt( PlayerAcc, "Ammo4",           PlayerInfo[playerid][pAmmo4]);
        	INI_WriteInt( PlayerAcc, "Weapon5",         PlayerInfo[playerid][pWeapon5]);
        	INI_WriteInt( PlayerAcc, "Ammo5",           PlayerInfo[playerid][pAmmo5]);
        	INI_WriteInt( PlayerAcc, "Weapon6",         PlayerInfo[playerid][pWeapon6]);
        	INI_WriteInt( PlayerAcc, "Ammo6",           PlayerInfo[playerid][pAmmo6]);
        	INI_WriteInt( PlayerAcc, "Weapon7",         PlayerInfo[playerid][pWeapon7]);
        	INI_WriteInt( PlayerAcc, "Ammo7",           PlayerInfo[playerid][pAmmo7]);
        	INI_WriteInt( PlayerAcc, "Weapon8",         PlayerInfo[playerid][pWeapon8]);
        	INI_WriteInt( PlayerAcc, "Ammo8",           PlayerInfo[playerid][pAmmo8]);
        	INI_WriteInt( PlayerAcc, "Weapon9",         PlayerInfo[playerid][pWeapon9]);
        	INI_WriteInt( PlayerAcc, "Ammo9",           PlayerInfo[playerid][pAmmo9]);
        	INI_WriteInt( PlayerAcc, "Weapon10",        PlayerInfo[playerid][pWeapon10]);
        	INI_WriteInt( PlayerAcc, "Ammo10",          PlayerInfo[playerid][pAmmo10]);
        	INI_WriteInt( PlayerAcc, "Weapon11",        PlayerInfo[playerid][pWeapon11]);
        	INI_WriteInt( PlayerAcc, "Ammo11",          PlayerInfo[playerid][pAmmo11]);
        	INI_WriteInt( PlayerAcc, "Weapon12",        PlayerInfo[playerid][pWeapon12]);
        	INI_WriteInt( PlayerAcc, "Ammo12",          PlayerInfo[playerid][pAmmo12]);
        	INI_WriteInt( PlayerAcc, "Maleta",          PlayerInfo[playerid][pMaleta]);
        	INI_WriteInt( PlayerAcc, "Mochila",         PlayerInfo[playerid][pMochila]);
        	INI_WriteInt( PlayerAcc, "Casco",           PlayerInfo[playerid][pCasco]);
        	INI_WriteInt( PlayerAcc, "SIDA",            PlayerInfo[playerid][pSIDA]);
        	INI_WriteInt( PlayerAcc, "Cancer",          PlayerInfo[playerid][pCancer]);
        	INI_WriteInt( PlayerAcc, "Epilepsia",       PlayerInfo[playerid][pEpilepsia]);
        	INI_WriteInt( PlayerAcc, "DEagle",          PlayerInfo[playerid][pDEagle]);
        	INI_WriteInt( PlayerAcc, "Shotgun",         PlayerInfo[playerid][pShotgun]);
        	INI_WriteInt( PlayerAcc, "MP5",             PlayerInfo[playerid][pMP5]);
        	INI_WriteInt( PlayerAcc, "AK47",            PlayerInfo[playerid][pAK47]);
        	INI_WriteInt( PlayerAcc, "M4",              PlayerInfo[playerid][pM4]);
        	INI_WriteInt( PlayerAcc, "Sniper",          PlayerInfo[playerid][pSniper]);
        	INI_WriteInt( PlayerAcc, "FStyle",          PlayerInfo[playerid][pFStyle]);
        	INI_WriteInt( PlayerAcc, "Leccion",         PlayerInfo[playerid][pLeccion]);
        	INI_WriteInt( PlayerAcc, "Busqueda",        PlayerInfo[playerid][pBusqueda]);
        	INI_WriteInt( PlayerAcc, "AntiSIDA",        PlayerInfo[playerid][pAntiSIDA]);
        	INI_WriteInt( PlayerAcc, "AntiCancer",      PlayerInfo[playerid][pAntiCancer]);
        	INI_WriteInt( PlayerAcc, "AntiEpilepsia",   PlayerInfo[playerid][pAntiEpilepsia]);
        	INI_WriteInt( PlayerAcc, "Rent",            PlayerInfo[playerid][pRent]);
        	INI_WriteInt( PlayerAcc, "Rob",             PlayerInfo[playerid][pRob]);
        	INI_WriteInt( PlayerAcc, "Donate",          PlayerInfo[playerid][pDonateT]);
        	INI_WriteInt( PlayerAcc, "CarPremium",      PlayerInfo[playerid][pCarPremium]);
        	INI_WriteInt( PlayerAcc, "BanDuda",         PlayerInfo[playerid][pBanDuda]);
        	INI_WriteInt( PlayerAcc, "Seguro",          PlayerInfo[playerid][pSeguro]);
        	INI_WriteInt( PlayerAcc, "Walkie",          PlayerInfo[playerid][pWalkie]);
        	INI_WriteInt( PlayerAcc, "Head",            PlayerInfo[playerid][pHead]);
        	INI_WriteInt( PlayerAcc, "Married",         PlayerInfo[playerid][pMarried]);
        	INI_WriteString( PlayerAcc, "MarriedTo",	PlayerInfo[playerid][pMarriedTo]);
        	INI_WriteInt( PlayerAcc, "Entered",         PlayerInfo[playerid][pEntered]);
        	INI_WriteInt( PlayerAcc, "Peces",           PlayerInfo[playerid][pPeces]);
        	INI_WriteInt( PlayerAcc, "Implementos",     PlayerInfo[playerid][pImplementos]);
        	INI_WriteInt( PlayerAcc, "Carnada",         PlayerInfo[playerid][pCarnada]);
        	INI_WriteInt( PlayerAcc, "Fichas",          PlayerInfo[playerid][pFichas]);
        	INI_WriteInt( PlayerAcc, "DNIFalse",        PlayerInfo[playerid][pDNIFalse]);
        	INI_WriteString( PlayerAcc, "DNIName",      PlayerInfo[playerid][pDNIName]);
        	INI_WriteInt( PlayerAcc, "Suciedad", 	    PlayerInfo[playerid][pSuciedad]);
        	INI_WriteInt( PlayerAcc, "AnilloCom",       PlayerInfo[playerid][pAnilloCom]);
        	INI_WriteInt( PlayerAcc, "AnilloOro",       PlayerInfo[playerid][pAnilloOro]);
        	INI_WriteInt( PlayerAcc, "Collar",          PlayerInfo[playerid][pCollar]);
        	INI_WriteInt( PlayerAcc, "AnilloDia",       PlayerInfo[playerid][pAnilloDia]);
        	INI_WriteInt( PlayerAcc, "Pulsera",         PlayerInfo[playerid][pPulsera]);
        	INI_WriteInt( PlayerAcc, "Aretes",          PlayerInfo[playerid][pAretes]);
        	INI_WriteInt( PlayerAcc, "Reloj",           PlayerInfo[playerid][pReloj]);
        	for(new v = 0; v < MAX_PLAYERTOYS; v++)
 			{
 			    format(string, 128, "pt%dModelID",v);
 			    INI_WriteInt( PlayerAcc, string,        PlayerToyInfo[playerid][v][ptModelID]);
 			    format(string, 128, "pt%dBone",v);
                INI_WriteInt( PlayerAcc, string,        PlayerToyInfo[playerid][v][ptBone]);
                format(string, 128, "pt%dPosX",v);
                INI_WriteFloat( PlayerAcc, string,      PlayerToyInfo[playerid][v][ptPosX]);
                format(string, 128, "pt%dPosY",v);
                INI_WriteFloat( PlayerAcc, string,		PlayerToyInfo[playerid][v][ptPosY]);
                format(string, 128, "pt%dPosZ",v);
                INI_WriteFloat( PlayerAcc, string,		PlayerToyInfo[playerid][v][ptPosZ]);
                format(string, 128, "pt%dRotX",v);
                INI_WriteFloat( PlayerAcc, string,		PlayerToyInfo[playerid][v][ptRotX]);
                format(string, 128, "pt%dRotY",v);
                INI_WriteFloat( PlayerAcc, string,		PlayerToyInfo[playerid][v][ptRotY]);
                format(string, 128, "pt%dRotZ",v);
                INI_WriteFloat( PlayerAcc, string,		PlayerToyInfo[playerid][v][ptRotZ]);
			}
			
   		INI_Close( PlayerAcc );
	}
	return 1;
}
Reply
#8

He descargado el GM que me pasaste, y me pasa exactamente lo mismo.
Reply
#9

Quote:
Originally Posted by Ivanlamega
Посмотреть сообщение
He descargado el GM que me pasaste, y me pasa exactamente lo mismo.
Ya te digo que no sй que tienes pero yo descarguй el GM que te pasй antes de ponerlo acб y sн guardу los datos.

Y sн, la funciуn que guarda los datos es OnPlayerUpdateTime

La verdad que ahora estoy de acuerdo con el tнtulo, nunca habнa visto nada igual, їte pasу siempre?
Reply
#10

No, es la primera vez que me sucede, yo habнa dejado samp por un tiempo, deje mi servidor encendido, y hace unos dнas volvн y me encontrй con este problema. El dнa en que lo deje estaba todo perfecto.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)