10.02.2010, 17:22
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sethousepos", cmdtext, true, 10) == 0)
{
new file[256];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new File:properties = fopen("/properties.cfg", io_write);
format(file, sizeof file, "HousePos: %d\n,%d\n,%d\n",x, y, z);
{ fwrite(properties, file); }
fclose(properties);
return 1;
}
return 0;
}
Код:
HousePos: 1122473179 ,-1033036543 ,1070202880
Also if i was to example: [houseeterx],[houseentery][houseeterz][houseexitx][houseexity][houseexitz]
How would i get it to read which bits housexit, and which bit is house enter,
edit: sorry about the name it was originally for the coords not saving properly but i have fixed that