gangzone wont show
#1

I'm making a gangzone capturing for my new gm. But I got a problem with it. I'm saving the gangzone colors using y_ini. But the problem is, it won't even show.

pawn Код:
enum Zones
{
    zHospitalColor[12],
    zPoliceColor[12],
    zFuelColor[12],
    zTownColor[12],
    zGasColor[12],
    zWeapColor[12]
};
new zInfo[Zones];

stock zPath()
{
    new str[128];
    format(str,sizeof(str),ZonesPath);
    return str;
}

public loadzonecolors(name[], value[])
{
    INI_String("Hospital Color",zInfo[zHospitalColor],12);
    INI_String("Police Color",zInfo[zPoliceColor],12);
    INI_String("Town Color",zInfo[zTownColor],12);
    INI_String("Gas Color",zInfo[zGasColor],12);
    INI_String("Fuel Color",zInfo[zFuelColor],12);
    INI_String("Weap Color",zInfo[zWeapColor],12);
    return 1;
}
//onplayerconnect
INI_ParseFile(zPath(),"loadzonecolors");

//playerspawn
GangZoneShowForPlayer(playerid,zHospital,zInfo[zHospitalColor]);
GangZoneShowForPlayer(playerid,zPolice,zInfo[zPoliceColor]);
//...........

//after they have done capturing gangzones
new INI:file = INI_Open(zPath());
INI_SetTag(file,"Zone Colors");
INI_WriteString(file,"Hospital Color","0x0080FF66");
INI_Close(file);
GangZoneShowForAll(zHospital,0x0080FF66);
Reply
#2

up...
Reply
#3

i dont think that hexadecimal uses string.

so instead of INI_String make it INI_Hex ?

EDIT: and the enums shouldnt have string cells (like hello[20]) should be only hello only
Reply
#4

I don't see you created them.. anyways if you did try debugging.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)