SA-MP Forums Archive
Symbol already defined: "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: Symbol already defined: "SetPlayerMapIcon" (/showthread.php?tid=74467)



Symbol already defined: "SetPlayerMapIcon" - sidhu123 - 22.04.2009

Hey hey!.. [SAP]Sidhu here. I'm trying to add some icons to my gamemode, but I get an error and I'm not really sure how to fix it :P

pawn Код:
SetPlayerMapIcon(playerid, 12, 435.5161,2529.6707,16.8745, 34, 0);
    SetPlayerMapIcon(playerid, 12, 1389.2754,1768.1305,10.8203, 34, 0);
    SetPlayerMapIcon(playerid, 12, 285.9787,1932.6428,17.6406, 34, 0);
    SetPlayerMapIcon(playerid, 12, -1140.4843,-175.7608,14.1484, 34, 0);
    SetPlayerMapIcon(playerid, 12, 2114.2319,-2433.0293,13.5469, 34, 0);
Error: error 021: symbol already defined: "SetPlayerMapIcon"

All help is greatly appreciated!


Re: Symbol already defined: "SetPlayerMapIcon" - Jefff - 23.04.2009

Код:
SetPlayerMapIcon(playerid, 0, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 1, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 2, 435.5161,2529.6707,16.8745, 34, 0);
...
for example


Re: Symbol already defined: "SetPlayerMapIcon" - sidhu123 - 23.04.2009

Quote:
Originally Posted by Jefff
Код:
SetPlayerMapIcon(playerid, 0, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 1, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 2, 435.5161,2529.6707,16.8745, 34, 0);
...
for example
Didnt work...


Re: Symbol already defined: "SetPlayerMapIcon" - Snyper18 - 23.04.2009

Its already defined... ( Already there )
So just search for it?


Re: Symbol already defined: "SetPlayerMapIcon" - Jefff - 23.04.2009

Show public with these icons, i think the problem is with brackets


Re: Symbol already defined: "SetPlayerMapIcon" - Francis[French] - 23.04.2009

Hi there,

Your problem is from an unclosed function/callback. Which is a bracket problem. We need the whole code to help you out.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com


Re: Symbol already defined: "SetPlayerMapIcon" - OmeRinG - 23.04.2009

Quote:
Originally Posted by [SAP
Francis ]
Hi there,

Your problem is from an unclosed function/callback. Which is a bracket problem. We need the whole code to help you out.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
you know you don't have to write "Have fun scripting... regards blablabla" all the time you can just put in in your signature...

and for the guy who asked - it's weather you didn't close a bracket like the guy above said or you put it in your script just like that with no public - try putting it in OnGameModeInIt


Re: Symbol already defined: "SetPlayerMapIcon" - sidhu123 - 23.04.2009

I'm making a Gamemode, and I put it under OnPlayerConnect.. Look in the code below

http://pastebin.com/m59c1887


Re: Symbol already defined: "SetPlayerMapIcon" - JoeDaDude - 23.04.2009

When i did map icons i just simply added it under OnGamemodeInit
That seemed to work fine for me


Re: Symbol already defined: "SetPlayerMapIcon" - sidhu123 - 23.04.2009

Quote:
Originally Posted by JoeDaDude
When i did map icons i just simply added it under OnGamemodeInit
That seemed to work fine for me
Tried it. Didnt work.