30.10.2018, 03:15
I know now the problem but help me.
From the file: tColor = 0xFFFF00AA
but when it loads it becomes FFFF00AA
the "0x" gets removed, help me pls
this is save code:
loading the turf code:
From the file: tColor = 0xFFFF00AA
but when it loads it becomes FFFF00AA
the "0x" gets removed, help me pls
this is save code:
pawn Код:
forward SaveTurf(id);
public SaveTurf(id)
{
new file4[40];
format(file4, sizeof(file4), TPATH, id);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteHex(File,"tColor", TurfsInfo[id][TurfsColor]);
INI_Close(File);
return 1;
}
pawn Код:
forward loadturf_data(idx, name[], value[]);
public loadturf_data(idx, name[], value[])
{
INI_Hex("tColor", TurfsInfo[idx][TurfsColor]);
return 1;
}