Salut,
j'ai un problème avec le chargement ça crash al fonction au premier pX
public chargerScriptInt()
{
printf("Okei1");
if(fexist(SCRIPT))
{
printf("Okei2");
new File:intFiles = fopen(SCRIPT, io_read);
printf("Okei3");
new intstring[512];
printf("Okei4");
static Field[32][64];
printf("Okei5");
while(fread(intFiles, intstring, sizeof(intstring)))
{
printf("Okei6");
if(split2(intstring, Field, '|') == 10)
{
Info_Interieur[interieursCharges][pX] = floatstr(Field[0]);
Info_Interieur[interieursCharges][pY] = floatstr(Field[1]);
Info_Interieur[interieursCharges][pZ] = floatstr(Field[2]);
Info_Interieur[interieursCharges][preA] = floatstr(Field[3]);
Info_Interieur[interieursCharges][pInt] = strval(Field[4]);
format(Info_Interieur[interieursCharges][info], MAX_PLAYER_NAME*3, "%s", Field[5]);
interieursCharges++;
printf("Interieur chargé : %f %f %f",Info_Interieur[interieursCharges][pX],Info_Interieur[interieursCharges][pY],Info_Interieur[interieursCharges][pZ]);
}
}
}
fclose(intFiles);
}