01.03.2012, 14:27
First of all , this only saves one position at at time. A better code is this:
(it saves infinite coordonates)
Second of all , why people would want to use this if they can simplly use /save?
Third : this can be added to usefull snippets
pawn Code:
if (strcmp("/savep", cmdtext, true, 10) == 0)
{
new File:file,str[256];
file=fopen("Positions.txt",io_append);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
format(str, 256,"Posiotion Coordonates: %.3f,%.3f,%.3f",x,y,z);
fwrite(file,str);
fwrite(file,"\r\n");
fclose(file);
return 1;
}
Second of all , why people would want to use this if they can simplly use /save?
Third : this can be added to usefull snippets