Map icons don't work! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Map icons don't work! (
/showthread.php?tid=533944)
Map icons don't work! -
LeroyII - 27.08.2014
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?
Re: Map icons don't work! -
1fret - 27.08.2014
Take a look at this
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
Re: Map icons don't work! -
LeroyII - 27.08.2014
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
Re: Map icons don't work! -
1fret - 27.08.2014
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");
}
Re: Map icons don't work! -
LeroyII - 27.08.2014
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.
Re: Map icons don't work! -
1fret - 27.08.2014
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