27.03.2018, 12:00
Tente :
PHP код:
public LoadVip()
{
new arrCoords[3][64];
new strFromFile2[256];
new File: file = fopen("Configs/Vips.cfg", io_read);
if (file)
{
new idx = 0;
while(idx < sizeof(VipInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
strmid(VipInfo[idx][vNome], arrCoords[0], 0, strlen(arrCoords[0]), 255);
VipInfo[idx][vTipo] = strval(arrCoords[1]);
VipInfo[idx][vDias] = strval(arrCoords[2]);
idx++;
}
}
fclose(file);
return 1;
}