10.04.2012, 22:11
Ok different story.
im trying to do this
so after You click save in the new 0.3e editor, I want the created object to be updated, but to do that it has to overwrite this, but how without checking?
im trying to do this
pawn Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
if(response == 1)
{
new File:hFile;
hFile = fopen("Ustawienia/obiekty.txt", io_write);
new line[128];
format(line, sizeof(line), "%d, %f,%f,%f, %f,%f,%f,%d\r\n",Selected1[playerid], fX,fY,fZ,fRotX,fRotY,fRotZ,SelectedO[playerid]);
fwrite(hFile, line);
}
}