Bonjour a toutes et a tous,
dans le but de ma guerre des gang j'ai modifier le systeme du larp.
Soucis, il ne me recupere pas la couleur dans le fichier.
for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
}
public LoadTurfs()
{
new arrCoords[9][64];
new strFromFile2[256];
new File: file = fopen("turfs.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(TurfInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
TurfInfo[idx][zgang] = strval(arrCoords[0]);
strmid(TurfInfo[idx][zColor], arrCoords[1], 0, strlen(arrCoords[1]), 255);
TurfInfo[idx][zX] = floatstr(arrCoords[2]);
TurfInfo[idx][zY] = floatstr(arrCoords[3]);
TurfInfo[idx][zZ] = floatstr(arrCoords[4]);
TurfInfo[idx][zMinX] = floatstr(arrCoords[5]);
TurfInfo[idx][zMinY] = floatstr(arrCoords[6]);
TurfInfo[idx][zMaxX] = floatstr(arrCoords[7]);
TurfInfo[idx][zMaxY] = floatstr(arrCoords[8]);
idx++;
}
fclose(file);
}
return 1;
}
Couleur dans le fichier 0x003300AA
Merci de votre aide