Save positions
#9

Well, that sounds strange, but for instance I have an idea, just create a command, and use it to print the saved coords on screen, or write them in a file, here's a ZCMD command, but first you need to create a text-file called "SavedCoords.txt" inside "scriptfiles" folder, and it should work:

pawn Код:
COMMAND:savecoords(playerid,params[])
{
  if(PlayerInfo[playerid][pAdmin]==0) return 0;
  else
  {
        new CoordString[128];
        new Float:x,Float:y,Float:z,Float:pAngle;
        GetPlayerPos(playeridid,x,y,z);
        GetPlayerFacingAngle(playerid,pAngle);
        format(CoordString,sizeof(CoordString),"%f, %f, %f, %f;\n",x,y,z,pAngle);
        new File:PlayerCoords=fopen("SavedCoords.txt",io_append);
        if(PlayerCoords)
        {
            fwrite(PlayerCoords,CoordString);
            fclose(PlayerCoords);
        }
   }
 return 1;
}
So yeah, let me know if this works(I wrote it right now, so I am not sure), it's a great alternative in my opinnion, until you find the fix.
Reply


Messages In This Thread
Save positions - by Sellize - 29.06.2013, 11:48
Re: Save positions - by GODEX - 29.06.2013, 11:51
Re: Save positions - by Sellize - 29.06.2013, 11:53
Re: Save positions - by Anak - 29.06.2013, 11:56
Re: Save positions - by Sellize - 29.06.2013, 11:57
Re: Save positions - by GODEX - 29.06.2013, 11:59
Re: Save positions - by Sellize - 29.06.2013, 12:15
Re: Save positions - by GODEX - 29.06.2013, 12:16
Re: Save positions - by Cjgogo - 29.06.2013, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)