11.11.2010, 18:58
(
Последний раз редактировалось TheXIII; 11.11.2010 в 20:07.
)
try this
pawn Код:
dcmd_savelights(playerid,params[])
{
#pragma unused params
new File:savefile = fopen("DAdmin/Config/lights.txt", io_write);
new str[80];
format(str, sizeof(str), "CreateObject(354,%f, %f, %f,270,0.0, 0.0, 30.0);\r\n",
Lighter[playerid][X],
Lighter[playerid][Y],
Lighter[playerid][Z]);
fwrite(savefile, str);
fclose(savefile);
return 1;
}