Serious Problem with SetPlayerMarkerForPlayer
#1

Hello,

I have a function to set the blip player who calls a service.

First I created this:

pawn Код:
case 0: // Taxi
{
    foreach(Player, PLAY)
    {
        if(pL[PLAY][pLProf] == 2)
        {
            SendClientMessage(PLAY, 0x00FFFFFF, "A player called the taxi. See it on the radar...");
            PlayerPlaySoundEx(PLAY, 1057);
            SetPlayerMarkerForPlayer(PLAY, playerid, 0x00FFFFFF);
        }
    }
    SendClientMessage(playerid, 0x00FFFFFF, "You called a taxi. Please wait...");
    PlayerPlaySoundEx(playerid, 1056);
    SetPVarInt(playerid,  "Servic1", 1);
}
BUT, the SetPlayerMarkerForPlayer bug... after one of the players to move the blip disappears!

I have no other code related to the blips that might be causing it.

My SetPlayerMarkers is 1 (global) and I set the alpha of the all players to 00.

Looking for a way to solve this, I created this code:

pawn Код:
task ServerBlipAtualization[2000]()
{
    foreach(Player, PLAY)
    {
        if(GetPVarInt(PLAY, "Servic1") >= 1) // Taxista
        {
            foreach(Player, pLAY)
            {
                 if(pL[pLAY][pLProf] == 2) SetPlayerMarkerForPlayer(pLAY, PLAY, 0xFFFF00FF);
            }
        }
    }
}
But that did not solve my problem. Testing on localhost seems to work, but when the server has 5, 8, 12 players, the bug back.


Help me please!
Reply


Messages In This Thread
Serious Problem with SetPlayerMarkerForPlayer - by SuperChock - 03.08.2014, 00:47
Re: Serious Problem with SetPlayerMarkerForPlayer - by BlackM - 03.08.2014, 08:20
Re: Serious Problem with SetPlayerMarkerForPlayer - by SuperChock - 03.08.2014, 13:40
Re: Serious Problem with SetPlayerMarkerForPlayer - by SuperChock - 04.08.2014, 00:18
Re: Serious Problem with SetPlayerMarkerForPlayer - by Threshold - 04.08.2014, 04:26
Re: Serious Problem with SetPlayerMarkerForPlayer - by SuperChock - 04.08.2014, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)