Problem with gang zone
#2

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:
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;
}
loading the turf code:
pawn Код:
forward loadturf_data(idx, name[], value[]);
public loadturf_data(idx, name[], value[])
{
        INI_Hex("tColor", TurfsInfo[idx][TurfsColor]);
    return 1;
}
Reply


Messages In This Thread
Problem with gang zone - by ProfessorX - 30.10.2018, 03:06
Re: Problem with gang zone - by ProfessorX - 30.10.2018, 03:15
Re: Problem with gang zone - by GameOvr - 30.10.2018, 04:17
Re: Problem with gang zone - by ProfessorX - 30.10.2018, 04:26
Re: Problem with gang zone - by UFF - 30.10.2018, 05:21
Re: Problem with gang zone - by ProfessorX - 30.10.2018, 05:58

Forum Jump:


Users browsing this thread: 4 Guest(s)