16.07.2016, 10:16
seems ok to me
PHP код:
public:LoadBancoJob()
{
new arrCoords[7][64];
new strFromFile2[256];
new File: file = fopen("CRP_Scriptfiles/Jobs/BancoJob.cfg", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
BancoJob[TakeJobX] = floatstr(arrCoords[0]);
BancoJob[TakeJobY] = floatstr(arrCoords[1]);
BancoJob[TakeJobZ] = floatstr(arrCoords[2]);
BancoJob[TakeJobWorld] = strval(arrCoords[3]);
BancoJob[TakeJobInterior] = strval(arrCoords[4]);
BancoJob[TakeJobAngle] = floatstr(arrCoords[5]);
BancoJob[TakeJobPickupID] = strval(arrCoords[6]);
BancoJob[TakeJobPickupID] = CreateStreamPickup(1210,23,BancoJob[TakeJobX],BancoJob[TakeJobY],BancoJob[TakeJobZ],PICKUP_RANGE);
print("{1E90FF}[INFO]: {FFFFFF}Emprego de Secur carregado.");
}
fclose(file);
return 1;
}