LA-RP Problem player market still not showing Pls help
#1

Hey wutsup buds!

I am working on gamemode LA RP with fixing Player marker but it is not working even I spent 4 hours on it but nothing works..

Code :

//------------------------------------------------------------------------------------------------------
public OnGameModeInit() // Do not add vehicles Above the next lines. - CuervO
{
ShowPlayerMarkers(2);
LoadCar();
new string2[64];
for(new h = 1; h < sizeof(CarInfo); h++)
{
format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
if(dini_Exists(string2))
{
ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
if(CarInfo[h][cPaintjob] != 999)
{
ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
}
SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
SetVehicleModifications(h);
}
}
//--------------------------------------------------------------------------------------------------------------------

Any help will be appreciated as you can see I added ShowPlayerMarker(2) and even I were tried ShowPlayerMarker(1) but nothing works ..
Reply
#2

Make sure there isn't any line like "SetPlayerColor(playerid, 0xFFFFFF00);". That would make markers transparent.
Reply
#3

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Make sure there isn't any line like "SetPlayerColor(playerid, 0xFFFFFF00);". That would make markers transparent.
Thanks for reply mate..

I have this line "SetPlayerColor(playerid,0xBBBBBB00);"

Should i remove it? or should I change color code?
Reply
#4

Just remove it, players should get random colors by default. Just be careful with SetPlayerColor lines, in order to avoid transparent markers and setting the same color for everybody.
Reply
#5

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Make sure there isn't any line like "SetPlayerColor(playerid, 0xFFFFFF00);". That would make markers transparent.
Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Just remove it, players should get random colors by default. Just be careful with SetPlayerColor lines, in order to avoid transparent markers and setting the same color for everybody.
I removed all the lines with like SetPlayerColor(playerid, 0xFFFFFF00 but player markers still not showing on map.
Reply
#6

Any help
Reply
#7

Avoid double posting, I see you're kinda new here, why don't you read the rules also?

On the other hand, as far as I know there are only three ways to hide markers on the map:
  • SetPlayerColor: make sure it's not using 00 as alpha.
  • ShowPlayerMarkers: make sure its value is set to 1 or 2.
  • SetPlayerMarkerForPlayer: make sure it's not using 00 as alpha.
Okay, if you're wondering about what alpha is, check this.

If the bug persiste probably you're too new into this and you don't know where all these functions are. Then search, use Notepad++ and search in a set of files at once (gamemode, includes, etc.).

People come here and just say "help" without providing enough information or code, those who try to help aren't wizards! Or are they?
Reply
#8

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Avoid double posting, I see you're kinda new here, why don't you read the rules also?

On the other hand, as far as I know there are only three ways to hide markers on the map:
  • SetPlayerColor: make sure it's not using 00 as alpha.
  • ShowPlayerMarkers: make sure its value is set to 1 or 2.
  • SetPlayerMarkerForPlayer: make sure it's not using 00 as alpha.
Okay, if you're wondering about what alpha is, check this.

If the bug persiste probably you're too new into this and you don't know where all these functions are. Then search, use Notepad++ and search in a set of files at once (gamemode, includes, etc.).

People come here and just say "help" without providing enough information or code, those who try to help aren't wizards! Or are they?
I didn't said that you are wizards i found that this section is for scripting help and I posted here my code to get some help .. but you seems angry about asking an question? aren't you?
Reply
#9

I'm not angry at all, don't get me wrong. I don't know if you noticed but I tried to help you before. I'm only saying that people should provide more code when they ask for help. You posted just five lines of code and you already said that ShowPlayerMarkers doesn't work. Then the problem isn't there! Why would I want to see that?

It's enough, let's return to the real issue, did you try what I told you in my last post?
Reply
#10

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
I'm not angry at all, don't get me wrong. I don't know if you noticed but I tried to help you before. I'm only saying that people should provide more code when they ask for help. You posted just five lines of code and you already said that ShowPlayerMarkers doesn't work. Then the problem isn't there! Why would I want to see that?

It's enough, let's return to the real issue, did you try what I told you in my last post?
Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Ride answered perfectly the 3 functions he listed are mostly the only ones that could hide the player's marker make sure that you're not using the showplayermarkers and make sure setplayercolor doesnt have 00 at the endcode and make sure you dont have a color set for white such as 0xFFFFFFFF i'm not sure but i think that hides the marker on map too, goodluck, also please note that we're only trying to help you here.
Mate I'm attaching my gamemode pwn file please have a look and try to diagnose the real problem that don't allow player markers to show on map.

The reason why i am asking about this is that I am new in scripting and don't know much coding.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)