Change the map icon in the Streamer Plugin function
#1

when the mode started i did like this -
PHP код:
MapIcon[NumberProp] = SetPlayerMapIconEX(70,-1,NumberProp,dini_Float(fileProp,"x"),dini_Float(fileProp,"y"),dini_Float(fileProp,"z"),31,0); 
and its working.

but when i try to change the map icon with a commands like this -
PHP код:
MapIcon[NumberProp] = SetPlayerMapIconEX(70,-1,NumberProp,dini_Float(fileProp,"x"),dini_Float(fileProp,"y"),dini_Float(fileProp,"z"),32,0); 
that's not change !!! why?

here is the SetPlayerMapIconEX -

PHP код:
forward SetPlayerMapIconEX(distance,playerid,idprop,Float:xFloat:yFloat:ztype ,style);
public 
SetPlayerMapIconEX(distance,playerid,idprop,Float:xFloat:yFloat:ztype ,style)
{
style = -1;
idprop = -1;
playerid = -1;
CreateDynamicMapIcon(xyztype0, -1, -1, -1distance);
return 
1;

big thanks for helping !!!!
Reply
#2

This is not 100% like you want it but you see how you do it, you can edit it.

Instead of use:
forward (...)
public (...)
use:
pawn Код:
stock SetPlayerMapIconEX(playerid = -1, Float:distance, Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1)
{
    return CreateDynamicMapIcon(x, y, z, type, color, worldid, interiorid, playerid, distance);
}
Reply
#3

Thank's man !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)