03.08.2014, 00:47
Hello,
I have a function to set the blip player who calls a service.
First I created this:
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:
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. ![Sad](images/smilies/sad.gif)
Help me please!
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);
}
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);
}
}
}
}
![Sad](images/smilies/sad.gif)
Help me please!