Map icons don't work!
#1

Hello guys, like i said in title, my map icons don't work.. When i compile and run server no errors, but when i enter the server, there are not house icons or any map icons don't work. They just don't show up. When i type command to buy house it shows client message that i bought the house. Like icon is there but you can't see it. I got latest plugins and includes updates. Any idea what i could try?
Reply
#2

Take a look at this
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
Reply
#3

Quote:
Originally Posted by 1fret
Посмотреть сообщение
This is code with MAPICON_LOCAL
Код:
	AddHouse(0, -2723.707763, -191.290557, 4.335937, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0, MAPICON_LOCAL); //Big house
This is without (that's how it was when i downloaded gm):
Код:
	AddHouse(0, -2723.707763, -191.290557, 4.335937, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0); //Big house
When i add "MAPICON_LOCAL" this is what i get:
Код:
E:\Desktop\Golden2\GOLDEN~SATDM V10.0-windows\gamemodes\SATDMv9.pwn(3148) : warning 202: number of arguments does not match definition
Reply
#4

Quote:
Originally Posted by LeroyII
Посмотреть сообщение
This is code with MAPICON_LOCAL
Код:
	AddHouse(0, -2723.707763, -191.290557, 4.335937, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0, MAPICON_LOCAL); //Big house
This is without (that's how it was when i downloaded gm):
Код:
	AddHouse(0, -2723.707763, -191.290557, 4.335937, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0); //Big house
When i add "MAPICON_LOCAL" this is what i get:
Код:
E:\Desktop\Golden2\GOLDEN~SATDM V10.0-windows\gamemodes\SATDMv9.pwn(3148) : warning 202: number of arguments does not match definition
Ok here is the problem there are 3 house icons in gta sa . Are you talking about the green house icon that spins at the door in the game.which signifies that the house can be purchase.( the green icon)

pawn Код:
new house;// Create a variable to store the pickup ID in

public OnGameModeInit()
{
House = CreatePickup(1273, 2,coordinates for the icon, -1); //making the icon

public Onplayerpickuppickup
{
If{pickupid== house}
{
       //Whatever you want to do her for example sendclientmessage(playerid,color," use /buy to buy this house");
}
Reply
#5

Quote:
Originally Posted by 1fret
Посмотреть сообщение
Ok here is the problem there are 3 house icons in gta sa . Are you talking about the green house icon that spins at the door in the game.which signifies that the house can be purchase.( the green icon)

pawn Код:
new house;// Create a variable to store the pickup ID in

public OnGameModeInit()
{
House = CreatePickup(1273, 2,coordinates for the icon, -1); //making the icon

public Onplayerpickuppickup
{
If{pickupid== house}
{
       //Whatever you want to do her for example sendclientmessage(playerid,color," use /buy to buy this house");
}
There are around 1770 icons that should be created, i should do it with all of them? Btw purpose of that "addhouse" is to create a new folder with owner, price, coordinates etc.
Reply
#6

Quote:
Originally Posted by LeroyII
Посмотреть сообщение
There are around 1770 icons that should be created, i should do it with all of them? Btw purpose of that "addhouse" is to create a new folder with owner, price, coordinates etc.
As far as ow you will have to make them one by one cause you will still have to get the 1000+ coordinates so it does make a difference and house it the name of the pickup
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)