22.11.2011, 12:48
Tbh im not sure where i can find my declaration, but it uses the file fbidutyposition.cfg
246.674500|125.841600|1003.218800|1|3|176.314700
Thats the only line in it.
246.674500|125.841600|1003.218800|1|3|176.314700
Thats the only line in it.
PHP код:
public Loadfbidutyposition()
{
new arrCoords[6][64];
new strFromFile2[256];
new File: file = fopen("CRP_Scriptfiles/Locations/fbidutyposition.cfg", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
fbidutyposition[X] = floatstr(arrCoords[0]);
fbidutyposition[Y] = floatstr(arrCoords[1]);
fbidutyposition[Z] = floatstr(arrCoords[2]);
fbidutyposition[World] = strval(arrCoords[3]);
fbidutyposition[Interior] = strval(arrCoords[4]);
fbidutyposition[Angle] = floatstr(arrCoords[5]);
print("[INFO:] Fbi Duty location loaded.");
}
fclose(file);
return 1;
}