[Ajuda] /save nгo salva na pasta do GTA
#3

https://sampwiki.blast.hk/wiki/File_Functions

pawn Код:
if (strcmp(cmdtext, "/salvarpos", true)==0)
    {
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, Rotation);
 
        new File:pos=fopen("posisalva.txt", io_append);
        format(string, 256, "X: %f,Y: %f,Z: %f,Rot: %f,", X, Y, Z,Rotation);
        fwrite(pos, string);
        fclose(pos);
 
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)