28.07.2015, 16:43
Код:
CMD:create(playerid)
{
new string[174];
new Float:x[50], Float:y[50], Float:z[50];
for(new i=0; i<50; i++)
{
if(x[i]==0.0 && y[i]==0.0 && z[i]==0.0)
{
GetPlayerPos(playerid,x[i], y[i] ,z[i]);
format(string, sizeof(string), "x[%i]=%f, y[%i]=%f,z[%i]=%f-0.9\n", i, x[i], i, y[i], i, z[i]);
break;
}
}
new File:lFile = fopen("logs/poz.txt", io_append);
fwrite(lFile, string);
fclose(lFile);
return 1;
}


