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


Messages In This Thread
gangzone wont show - by newbienoob - 05.09.2012, 10:32
Re: gangzone wont show - by newbienoob - 07.09.2012, 00:13
Re: gangzone wont show - by Kirollos - 07.09.2012, 00:17
Respuesta: gangzone wont show - by Marricio - 07.09.2012, 00:18

Forum Jump:


Users browsing this thread: 1 Guest(s)