SA-MP Forums Archive
savedpositions.txt not there. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: savedpositions.txt not there. (/showthread.php?tid=478789)



savedpositions.txt not there. - xFuTuRe - 01.12.2013

Yes, I've ******d around and none of it helps me.

I'm on a windows 8 laptop and the savedpositions.txt file is nowhere, I've had no problems on my computer with windows 7 since 2009.

I'm running both sa-mp and gta as administrator.

I hope someone is able to help.

Thanks in advance.


Re: savedpositions.txt not there. - Avi Raj - 01.12.2013

Go in game and type /save test.
Go to my documents/gta/samp/savepositions.txt


Re: savedpositions.txt not there. - xFuTuRe - 01.12.2013

I know where it is supposed to be, but it never appears, no matter how many times I try to save it.


Re: savedpositions.txt not there. - xFuTuRe - 01.12.2013

For those experiencing the same problem, here's a small code that will help you in the future. (You need ZCMD)

Код:
CMD:savepos(playerid, params[])
{
	new Float:x, Float:y, Float:z, Float:a, skinid;
	
	new weapon[13], ammo[13];
	
    for(new i = 0; i < 13; i++)
    {
        GetPlayerWeaponData(playerid, i, weapon[i], ammo[i]);
    }
    
	skinid = GetPlayerSkin(playerid);
	GetPlayerPos(playerid, x, y, z);
 	GetPlayerFacingAngle(playerid, a);
	
	format(savestr, sizeof(savestr), "AddPlayerClass(%d, %0.4f, %0.4f, %0.4f, %0.4f, %d, %d, %d, %d, %d, %d); // %s\r\n", skinid, x, y, z, a, weapon[0], ammo[0], weapon[1], ammo[1], weapon[2], ammo[2], params);
	
	new File:savedpositions = fopen("savedpositions.txt", io_append);
	fwrite(savedpositions, savestr);
	fclose(savedpositions);
	return 1;
}
This will do the same thing and save it in your scriptfiles folder.


Re: savedpositions.txt not there. - PawelQ - 02.12.2013

Maybe try to reinstall GTA.