PHP Code:
format(str4, sizeof(str4), DPATH, idx);
INI_ParseFile(str, "loaddoor_%s", .bExtra = true, .extra = idx, .bPassTag = true);
printf("id %i model %i", idx, DoorsInfo[idx][dModel]);
PHP Code:
forward loaddoor_data(idx, tag[], name[], value[]);
public loaddoor_data(idx, tag[], name[], value[])
{
INI_Int("dUsed", DoorsInfo[idx][dUsed]);
INI_Int("dModel", DoorsInfo[idx][dModel]);
INI_Float("dX", DoorsInfo[idx][dX]);
INI_Float("dY", DoorsInfo[idx][dY]);
INI_Float("dZ", DoorsInfo[idx][dZ]);
INI_Float("dRX", DoorsInfo[idx][dRX]);
INI_Float("dRY", DoorsInfo[idx][dRY]);
INI_Float("dRZ", DoorsInfo[idx][dRZ]);
INI_Int("dInt", DoorsInfo[idx][dInt]);
INI_Int("dWorld", DoorsInfo[idx][dWorld]);
return 1;
}
INI file: 'Doors/1.ini'
Code:
[data]
dUsed = 1
dModel = 1504
dX = -1443.239868
dY = 2628.994628
dZ = 54.815917
dRX = 0.000000
dRY = 0.000000
dRZ = -35.500003
dInt = 0
dWorld = 0
Aucun commentaire:
Enregistrer un commentaire