Problem with gang zones
#1

I have a problem with gang zones, i have 2 gangs Ballas and GSF, but when i load it it only shows the color for ballas(purple), but for gsf it's white, and idk why. GSF is id 5 and ballas is 6

http://i.imgur.com/lmOeMGD.png

this is loading and other:

pawn Код:
case THREAD_UCITAJTERITORIJE:
        {
            if(szRows)
            {
                new temp[130];
                for(new i = 0; i < szRows; i++)
                {
                    new id;
                    cache_get_field_content(i, "ID", temp);
                    id = strval(temp);

                    cache_get_field_content(i, "Vlasnik", temp);
                    format(TeInfo[id][Vlasnik], 50, "%s", temp);

                    cache_get_field_content(i, "Team", temp);
                    TeInfo[id][Team] = strval(temp);

                    cache_get_field_content(i, "PozX", temp);
                    TeInfo[id][PozX] = floatstr(temp);

                    cache_get_field_content(i, "PozY", temp);
                    TeInfo[id][PozY] = floatstr(temp);

                    cache_get_field_content(i, "PozZ", temp);
                    TeInfo[id][PozZ] = floatstr(temp);

                    cache_get_field_content(i, "PozA", temp);
                    TeInfo[id][PozA] = floatstr(temp);
                   
                    SpawnedTeritorija++;
                   
                    /*TerID[id] = CreateDynamicMapIcon(TeInfo[id][PozX], TeInfo[id][PozY], TeInfo[id][PozZ], 42, -1, -1, -1, -1, 100);*/
                   
                    TerID[id] = GangZoneCreate(TeInfo[id][PozX], TeInfo[id][PozY], TeInfo[id][PozZ], TeInfo[id][PozA]);


                }
                printf("Roleplay Factory - Server je ucitao %d teritorija", SpawnedTeritorija);
            }
        }
onplayerspawn:

pawn Код:
for(new i=0; i < sizeof(TeInfo); i++)
    {
        GangZoneShowForPlayer(playerid, TerID[i], GetTeamZoneColor(TeInfo[i][Team]));
    }
and GetTeamZoneColor:

pawn Код:
stock GetTeamZoneColor(teamid)
{
    switch(teamid)
    {
        case 5: return 0xFF00FF88;
        case 6: return 0xFF00FF88;
    }
    return -1;
}
Reply
#2

can you give us those data that you load, it could be problem in there.

and what is your id for gsf?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)