26.03.2016, 20:37
Quote:
ele nao esta carregando ?, como vc esta salvando essas posiзoes no txt ?
|
Код HTML:
CMD:sav(playerid,params[]) { new p; new str[100],Float:X,Float:Y,Float:Z,Float:Rotation; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Rotation); new File:pos = fopen("positions.txt", io_append); if(!sscanf(params,"i",p)) { format(str, 100, "%dX_%f,%dY_%f,%dZ_%f,%dR_%f\r\n", p,X,p,Y,p,Z,p,Rotation); fwrite(pos, str); } fclose(pos); return 1; }