30.10.2018, 03:06
On OngameModeInit, i am loading the turfs using y_ini. then once i get the data i create a zone this is the code:
This is the color in the file: 0xFFFF00AA
but its color in game is white? why?
pawn Код:
for(new f = 0; f < sizeof(TurfsInfo); f++)//Creates a loop, that goes through all of the businesses.
{
new strs[40];
format(strs, sizeof(strs), TPATH, f);//formats the file path, with the biz ID
INI_ParseFile(strs, "loadturf_%s", .bExtra = true, .extra = f );
TurfsInfo[f][TurfID] = GangZoneCreate(TurfsInfo[f][minx], TurfsInfo[f][miny], TurfsInfo[f][maxx], TurfsInfo[f][maxy], TurfsInfo[f][TurfsColor], -1, -1, 0, -1);
printf("[debug] Turf %d: %x", f, TurfsInfo[f][TurfsColor]);
}
but its color in game is white? why?