13.09.2010, 01:57
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;
}