23.04.2016, 01:31
https://sampwiki.blast.hk/wiki/File_Functions
Quote:
if (strcmp(cmdtext, "/salvarpos", true)==0) { GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Rotation); new Fileos=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; } |