19.07.2016, 05:34
Hello
We've been facing some issues deploying map icons,for some reason some of them won't show until you go near them,some others show in the map (pause menu) without having to approach them ,they're all type (2) so there should be no problem with the type we have a total of 9 map icons so far and each time we restart a random amount of those 9 show (sometimes 7,3,4... random),here's the code
This is just a quick code we made out of the Gamemode,we've unloaded all plugins and filterscripts thinking it was some sort of conflict but still no use,it got to the point where we started thinking it was a SA-MP bug,would really appreciate any sort of help/ideas
Regards
We've been facing some issues deploying map icons,for some reason some of them won't show until you go near them,some others show in the map (pause menu) without having to approach them ,they're all type (2) so there should be no problem with the type we have a total of 9 map icons so far and each time we restart a random amount of those 9 show (sometimes 7,3,4... random),here's the code
Код:
public OnPlayerSpawn(playerid) { new text[20]; format(text, sizeof(text), "ID: %d - Created? %d", 1, SetPlayerMapIcon(playerid, 1, 1124.27, -2037.1, 69.885, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 2, SetPlayerMapIcon(playerid, 2, 652.161, -1619.98, 15, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 3, SetPlayerMapIcon(playerid, 3, 1298.48, -800.456, 84.141, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 4, SetPlayerMapIcon(playerid, 4, 776.747, -1038.25, 24.262, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 5, SetPlayerMapIcon(playerid, 5, 1279.71, -1509.57, 10.047, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 6, SetPlayerMapIcon(playerid, 6, 2793.89, -1087.3, 30.719, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 7, SetPlayerMapIcon(playerid, 7, 2440, -1338.87, 24.102, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 8, SetPlayerMapIcon(playerid, 8, 2072.57, -1558.86, 13.41, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 9, SetPlayerMapIcon(playerid, 9, 2296.73, -1882.92, 14.234, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); return 1; }
Regards