SA-MP Forums Archive
[Q] SetPlayerMapIcon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Q] SetPlayerMapIcon (/showthread.php?tid=196006)



[Q] SetPlayerMapIcon - XePloiT - 04.12.2010

hm well when im use this in the GM its works but when im use this in a FS this is does'nt work...
this is suppose to be like this ?


Re: [Q] SetPlayerMapIcon - Zh3r0 - 04.12.2010

Not really, a function should be universal.

Show us some code, maybe it's your fault.


Re: [Q] SetPlayerMapIcon - XePloiT - 04.12.2010

well i got 1 to work in a FS...but this si was just one line to show where the bank is...
but i coded house system and i thought to add Map Icons but this script doesn't work :\
pawn Код:
new tmp[3][128];
    for(new i=1;i<MAX_HOUSES;i++)
    {
        split(HouseInf[i][hIcnP],tmp,',');
        if(!strcmp(HouseInf[i][hOwner],"ForSale",true))
            SetPlayerMapIcon(playerid, 1, floatstr(tmp[0]),floatstr(tmp[1]),floatstr(tmp[2]), 31, 0,MAPICON_GLOBAL);
        else SetPlayerMapIcon(playerid, 1, floatstr(tmp[0]),floatstr(tmp[1]),floatstr(tmp[2]), 32, 0,MAPICON_LOCAL);
    }