CreateDynamicMapIcon
#7

Well, when you do what you've did above you are actually inserting your data inside an enum variables.

so for example if you got:

PHP Code:
enum e_shops
{
    
Float:MapX,
    
Float:MapY,
    
Float:MapZ,
}; 
and then you insert the data into them like that:
PHP Code:
new Float: WepShop[][e_shops] =
{
    {-
85.2422, -1165.0312, 2.6328},
    {-
90.1406, -1176.6250, 2.6328},
    {-
92.1016, -1161.7891, 2.9609},
    {
1941.6562, -1778.4531, 14.1406},
    {
2645.2500, 1111.7500, 11.2500}
}; 
you would be able to loop by the size of WepShop, and use MapX, MapY, MapZ, to get the coords example:
PHP Code:
for(new i = 0; i < sizeof WepShop; i++)
{
    
printf("%f | %f | %f",WepShop[i][MapX],WepShop[i][MapY],WepShop[i][MapZ]);
} 
Result you would get:
PHP Code:
-85.242202 | -1165.031250 | 2.632800
-90.140602 | -1176.625000 | 2.632800
-92.101600 | -1161.789062 | 2.960900
1941.656250 
| -1778.453125 | 14.140600
2645.250000 
| 1111.750000 | 11.250000 
Reply


Messages In This Thread
CreateDynamicMapIcon - by Face9000 - 26.03.2017, 22:50
Re: CreateDynamicMapIcon - by Dayrion - 26.03.2017, 23:01
Re: CreateDynamicMapIcon - by Face9000 - 26.03.2017, 23:16
Re: CreateDynamicMapIcon - by GoldenLion - 27.03.2017, 05:40
Re: CreateDynamicMapIcon - by Face9000 - 28.03.2017, 19:43
Re: CreateDynamicMapIcon - by jasperschellekens - 28.03.2017, 21:26
Re: CreateDynamicMapIcon - by jlalt - 29.03.2017, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)