SA-MP Forums Archive
Why it happens? - 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: Why it happens? (/showthread.php?tid=373584)



Why it happens? - Magic_Time - 31.08.2012

I have this code at:
Код HTML:
OnPlayerConnect
pawn Код:
(733)SetPlayerMapIcon(playerid, 12, -19.7129,2329.5400,24.1406,255.1848, 19, 0, MAPICON_GLOBAL);
When I enter in game, I see nothing!
No map icon..

Also I have those warnings:
Код:
(733) : warning 213: tag mismatch
(733) : warning 202: number of arguments does not match definition
Can someone help me?


Re: Why it happens? - Ironboy - 31.08.2012

pawn Код:
SetPlayerMapIcon(playerid, 12, -19.7129, 2329.5400, 24.1406, 19, 0, MAPICON_GLOBAL);
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon


Re: Why it happens? - Johnson_Brooks - 31.08.2012

You need to put that under OnGameMode/FilterscriptInit

NOTE:
ShowPlayerMapIcon((playerid, iconid, Float, Float:y, Float:z, markertype, color, style)

I think you forgot the markertype and the color.
Hope i helped


Re: Why it happens? - Magic_Time - 31.08.2012

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
pawn Код:
SetPlayerMapIcon(playerid, 12, -19.7129, 2329.5400, 24.1406, 19, 0, MAPICON_GLOBAL);
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
Hey bro!
Really thanks! +rep you!