GangZoneShowForPlayer
#1

Hey there,
i've got a GangZone Problem. I load the Coordiantes from a file, works fine. But they don't will be shown all. Just a few. I put this code under OnPlayerSpawn.
pawn Код:
for(new z = 0; z < sizeof(GangZoneInfo); z++)
    {
      zone[z]= GangZoneShowForPlayer(playerid, z, GetGangZoneColor(z));
    }
Reply
#2

Quote:
Originally Posted by #.'
Hey there,
i've got a GangZone Problem. I load the Coordiantes from a file, works fine. But they don't will be shown all. Just a few. I put this code under OnPlayerSpawn.
pawn Код:
for(new z = 0; z < sizeof(GangZoneInfo); z++)
    {
      zone[z]= GangZoneShowForPlayer(playerid, z, GetGangZoneColor(z));
    }
Hmmm GangZoneShowForPlayer doesn't return anything, why are you trying to store its value ? What you should've done is store the value returned from CreateGangZone in that array / use THAT to load the GangZone (GangZoneShowForPlayer(playerid, zone[z], GetGangZoneColor(z)).

Hope that makes sense ... epic tired aha.
Reply
#3

thx, i fixxed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)