SA-MP Forums Archive
/save in server dont work?, to get cordinates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /save in server dont work?, to get cordinates (/showthread.php?tid=196527)



/save in server dont work?, to get cordinates - universe - 05.12.2010

It returns me: i cant open the savedataposition.txt file for append


Re: /save in server dont work?, to get cordinates - hanzen - 05.12.2010

Run as administrator?


Re: /save in server dont work?, to get cordinates - universe - 05.12.2010

no please help me


Re: /save in server dont work?, to get cordinates - Ash. - 05.12.2010

Are you using /save - because if you are using /save - the file is savedpositions.txt - not savedataposition.txt

Also, have you scripted your own /save function for use server side?


Re: /save in server dont work?, to get cordinates - universe - 05.12.2010

no, i didn't script the command.


Re: /save in server dont work?, to get cordinates - Ash. - 05.12.2010

OK, what operating system are you using?

This forum requires that you wait 120 seconds between posts. Please try again in 90 seconds.


Re: /save in server dont work?, to get cordinates - universe - 05.12.2010

AM win 7


Re: /save in server dont work?, to get cordinates - tentaqueda - 05.12.2010

here saved in C: \ Users \ Tentaqueda \ Documents \ GTA San Andreas User Files \ SAMP
and has the file savedpositions.

if you can not, see if I can see you to save a FS: D


Re: /save in server dont work?, to get cordinates - universe - 05.12.2010

no i dont see


Re: /save in server dont work?, to get cordinates - tentaqueda - 06.12.2010

took me to find more here:

pawn Код:
if (strcmp(cmdtext, "/save", true)==0)
  {
    GetPlayerPos(playerid, X, Y, Z);
    new File:pos=fopen("positions.txt", io_append);
    format(string, 256, "Coordenada(%f, %f, %f);", X, Y, Z,Rotation);
    fwrite(pos, string);
    fclose(pos);
 
    return 1;
  }
if that fails, I'll try another. Hope this helps