/save in server dont work?, to get cordinates
#1

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

Run as administrator?
Reply
#3

no please help me
Reply
#4

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?
Reply
#5

no, i didn't script the command.
Reply
#6

OK, what operating system are you using?

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

AM win 7
Reply
#8

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
Reply
#9

no i dont see
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)